Skip to content

Commit

Permalink
PHPStan: ignore constant deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Oct 19, 2023
1 parent db03d75 commit afde1df
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/phpstan.baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
parameters:
ignoreErrors:
-
message: """
#^Fetching deprecated class constant VERSION of class Latte\\\\Engine\\:
use Engine\\:\\:Version$#
"""
count: 1
path: ../src/Bridge/NetteDI/LocalizationExtension.php

-
message: "#^Method Tests\\\\Orisai\\\\Localization\\\\Doubles\\\\FakeLocaleConfigurator\\:\\:getLanguageTag\\(\\) should return string but returns string\\|null\\.$#"
count: 1
Expand All @@ -15,6 +23,14 @@ parameters:
count: 1
path: ../tests/Unit/Bridge/NetteDI/LocalizationExtensionTest.php

-
message: """
#^Fetching deprecated class constant VERSION of class Latte\\\\Engine\\:
use Engine\\:\\:Version$#
"""
count: 2
path: ../tests/Unit/Bridge/NetteDI/LocalizationExtensionTest.php

-
message: "#^If condition is always false\\.$#"
count: 2
Expand Down

0 comments on commit afde1df

Please sign in to comment.