Skip to content

Commit

Permalink
Get rid of PHP 8 warning in PHAR
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jul 17, 2020
1 parent fe09262 commit e3ff706
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions bin/phpstan
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ use PHPStan\Command\DumpDependenciesCommand;
use PHPStan\Command\WorkerCommand;

(function () {
if (PHP_VERSION_ID >= 80000) {
error_reporting(E_ALL & ~E_WARNING);
} else {
error_reporting(E_ALL);
}
error_reporting(E_ALL);
ini_set('display_errors', 'stderr');
gc_disable(); // performance boost

Expand Down
3 changes: 3 additions & 0 deletions compiler/build/scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ function (string $filePath, string $prefix, string $content): string {

return str_replace(sprintf('%s\\ReflectionUnionType', $prefix), 'ReflectionUnionType', $content);
},
function (string $filePath, string $prefix, string $content): string {
return str_replace('final private', 'private', $content);
},
],
'whitelist' => [
'PHPStan\*',
Expand Down

0 comments on commit e3ff706

Please sign in to comment.