diff --git a/.phpstan/baseline-lt-8.2.neon b/.phpstan/baseline-lt-8.2.neon new file mode 100644 index 0000000..443422a --- /dev/null +++ b/.phpstan/baseline-lt-8.2.neon @@ -0,0 +1,17 @@ +parameters: + ignoreErrors: + - + message: "#^Call to method getBytesFromString\\(\\) on an unknown class Random\\\\Randomizer\\.$#" + count: 1 + path: ../src/Core/OAuth2Provider.php + + - + message: "#^Instantiated class Random\\\\Engine\\\\Secure not found\\.$#" + count: 1 + path: ../src/Core/OAuth2Provider.php + + - + message: "#^Instantiated class Random\\\\Randomizer not found\\.$#" + count: 1 + path: ../src/Core/OAuth2Provider.php + diff --git a/.phpstan/ignore-by-php-version.php b/.phpstan/ignore-by-php-version.php index 764c8c0..1b722ec 100644 --- a/.phpstan/ignore-by-php-version.php +++ b/.phpstan/ignore-by-php-version.php @@ -4,7 +4,10 @@ $includes = []; -if(PHP_VERSION_ID < 80300){ +if(PHP_VERSION_ID < 80200){ + $includes[] = __DIR__.'/baseline-lt-8.2.neon'; +} +elseif(PHP_VERSION_ID < 80300){ $includes[] = __DIR__.'/baseline-lt-8.3.neon'; }