diff --git a/composer.json b/composer.json index b5fb966..df4e119 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ }, "require-dev": { "phpunit/phpunit": "^10.0|^11.0|^12.0", - "squizlabs/php_codesniffer": "^3.6", + "squizlabs/php_codesniffer": "^4.0", "slevomat/coding-standard": "^8.0", "phpstan/phpstan": "^2.0", "phpstan/extension-installer": "^1.1", diff --git a/src/Subscriber/TestExecutor.php b/src/Subscriber/TestExecutor.php index 2a10b63..3e1443e 100755 --- a/src/Subscriber/TestExecutor.php +++ b/src/Subscriber/TestExecutor.php @@ -72,8 +72,6 @@ private static function assertThrows(callable $callable, ExpectedFailure $expect return; } - throw new \InvalidArgumentException(\sprintf( - "Expected to throw \"{$expectedFailure->class}\", got none", - )); + throw new \InvalidArgumentException("Expected to throw \"{$expectedFailure->class}\", got none"); } }