diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 578ba2e768..cf6f3277a1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -46420,6 +46420,11 @@ parameters: count: 6 path: test/classes/Plugins/Auth/AuthenticationHttpTest.php + - + message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with array\\{lifetime\\: 0, path\\: '/', domain\\: '', secure\\: false, partitioned\\?\\: false, httponly\\: false, samesite\\?\\: ''\\} and array\\{lifetime\\: int\\<0, max\\>, path\\: non\\-falsy\\-string, domain\\: string, secure\\: bool, httponly\\: bool, samesite\\: string\\} will always evaluate to false\\.$#" + count: 1 + path: test/classes/Plugins/Auth/AuthenticationSignonTest.php + - message: "#^Cannot access offset 'LoginCookieValidity' on mixed\\.$#" count: 1 diff --git a/test/classes/Plugins/Auth/AuthenticationSignonTest.php b/test/classes/Plugins/Auth/AuthenticationSignonTest.php index af3f77e58d..dfe9f8faf0 100644 --- a/test/classes/Plugins/Auth/AuthenticationSignonTest.php +++ b/test/classes/Plugins/Auth/AuthenticationSignonTest.php @@ -17,6 +17,8 @@ use function session_id; use function session_name; use function version_compare; +use const PHP_VERSION_ID; + /** * @covers \PhpMyAdmin\Plugins\Auth\AuthenticationSignon */ @@ -324,6 +326,7 @@ class AuthenticationSignonTest extends AbstractNetworkTestCase 'path' => '/', 'domain' => '', 'secure' => false, + 'partitioned' => false, 'httponly' => false, 'samesite' => '', ]; @@ -332,6 +335,10 @@ class AuthenticationSignonTest extends AbstractNetworkTestCase unset($defaultOptions['samesite']); } + if (PHP_VERSION_ID < 80500) { + unset($defaultOptions['partitioned']); + } + self::assertSame($defaultOptions, session_get_cookie_params()); } }