From 55ebdd417216189920340ad5a9b893e277ca723b Mon Sep 17 00:00:00 2001 From: smiley Date: Wed, 18 Sep 2024 21:06:35 +0200 Subject: [PATCH] :octocat: i hate this --- .phpstan/baseline-lt-8.2.neon | 17 +++++++++++++++++ .phpstan/ignore-by-php-version.php | 5 ++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .phpstan/baseline-lt-8.2.neon 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'; }