diff --git a/composer.json b/composer.json index 5332d00..39194f0 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ }, "require-dev": { "ext-zip": "*", - "phpstan/phpstan": "^1.0.0", + "phpstan/phpstan": "^2.1.0", "phpunit/phpunit": "^12.1.0", "spryker/code-sniffer": "^0.17.20" }, diff --git a/phpstan.neon b/phpstan.neon index e61bcf2..0ad9c3e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,4 +2,3 @@ parameters: level: 8 paths: - src/ - checkGenericClassInNonGenericObjectType: false diff --git a/src/Infrastructure/Service/Filesystem.php b/src/Infrastructure/Service/Filesystem.php index 4dc9e42..17fdca2 100644 --- a/src/Infrastructure/Service/Filesystem.php +++ b/src/Infrastructure/Service/Filesystem.php @@ -82,9 +82,8 @@ protected static function box(string $func, ...$args): mixed static::$lastError = null; - /** @var callable $errorHandler */ $errorHandler = static::class . '::handleError'; - set_error_handler($errorHandler); + set_error_handler($errorHandler); // @phpstan-ignore argument.type try { return $func(...$args); } finally {