diff --git a/composer.json b/composer.json index 4ef8d4c..f8ec681 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "ext-session": "*", "ext-sockets": "*", "phpstan/extension-installer": "^1.3.1", - "phpstan/phpstan": "1.11.11", + "phpstan/phpstan": "1.12.0", "phpstan/phpstan-phpunit": "1.4.0", "phpunit/phpunit": "11.3.1", "psr/container": "^1.0 || ^2.0", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 56f60cd..048a17e 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -10,6 +10,11 @@ parameters: count: 1 path: src/ReactPhpServer.php + - + message: "#^Offset 1 does not exist on array\\{0\\: string, 1\\?\\: numeric\\-string\\}\\.$#" + count: 1 + path: src/Session/Reader/PhpReader.php + - message: "#^Method BabDev\\\\WebSocket\\\\Server\\\\Session\\\\Reader\\\\PhpSerializeReader\\:\\:read\\(\\) should return array but returns mixed\\.$#" count: 1