Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit 88768ac

Browse files
Merge pull request #31 from mmoreram/fix/fixed-strict-types
Fixed strict type in PHP file
2 parents 32c711b + 5d0e72e commit 88768ac

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

‎bin/php-formatter‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
* @author Marc Morera <yuhu@mmoreram.com>
1515
*/
1616

17+
declare(strict_types=1);
18+
1719
require __DIR__ . '/../src/bootstrap.php';
1820

1921
use Mmoreram\PHPFormatter\Console\Application;
2022

2123
error_reporting(-1);
22-
ini_set('display_errors', 1);
24+
ini_set('display_errors', '1');
2325

2426
// run the command application
2527
$application = new Application();

‎build/php-formatter.phar‎

56 Bytes
Binary file not shown.

‎src/PHPFormatter/Console/Application.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Application extends BaseApplication
3232
public function __construct()
3333
{
3434
if (function_exists('ini_set') && extension_loaded('xdebug')) {
35-
ini_set('xdebug.show_exception_trace', false);
36-
ini_set('xdebug.scream', false);
35+
ini_set('xdebug.show_exception_trace', '0');
36+
ini_set('xdebug.scream', '0');
3737
}
3838

3939
if (function_exists('date_default_timezone_set') && function_exists('date_default_timezone_get')) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /