diff --git a/phpstan.neon b/phpstan.neon index 903f25e..812ff8c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -11,14 +11,14 @@ parameters: path: lib/functions.php count: 3 - - message: "#^Result of && is always true\\.$#" + rawMessage: "Result of && is always true." path: lib/functions.php count: 1 - - message: "#^Strict comparison using !== between '' and non-falsy-string will always evaluate to true\\.$#" + rawMessage: "Strict comparison using !== between '' and non-falsy-string will always evaluate to true." path: lib/functions.php count: 1 - - message: "#^Strict comparison using === between false and string will always evaluate to false\\.$#" + rawMessage: "Strict comparison using === between false and string will always evaluate to false." path: lib/functions.php count: 2 diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 2bef7c9..2e241c7 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -6,6 +6,7 @@ beStrictAboutOutputDuringTests="true" failOnRisky="true" failOnWarning="true" + failOnDeprecation="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">