Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit 88768ac

Browse files
authored
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

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
* @author Marc Morera <[email protected]>
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

+2-2
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)