diff --git a/composer.json b/composer.json index 48898cc..a3d7e06 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "php": "~8.3.0 || ~8.4.0" }, "require-dev": { - "phpstan/phpstan": "^2.1.17", + "phpstan/phpstan": "^2.1.18", "phpstan/phpstan-phpunit": "^2.0.6", "phpstan/phpstan-strict-rules": "^2.0.4", "phpunit/phpunit": "^12.2.7", diff --git a/tests/ErrorHandlerTest.php b/tests/ErrorHandlerTest.php index 5cf99c0..fba2b03 100644 --- a/tests/ErrorHandlerTest.php +++ b/tests/ErrorHandlerTest.php @@ -113,7 +113,7 @@ public function testHandleCliException(): void $this->errorHandler->exceptionHandler($this->exception); \fseek($memoryStream, 0); - $output = (string) \stream_get_contents($memoryStream); + $output = \stream_get_contents($memoryStream); self::assertStringContainsString($this->exception->getMessage(), $output); }