diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 51d82974..f73868f2 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -2757,6 +2757,12 @@ parameters:
count: 1
path: tests/Utils/BufferedQueryTest.php
+ -
+ message: '#^Attribute class PHPUnit\\Framework\\Attributes\\AllowMockObjectsWithoutExpectations does not exist\.$#'
+ identifier: attribute.notFound
+ count: 1
+ path: tests/Utils/CLITest.php
+
-
message: '#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#'
identifier: staticMethod.dynamicCall
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 59bc9f4c..b05f0578 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -1259,6 +1259,11 @@
+
+
+
+
+
list]]>
diff --git a/tests/Utils/CLITest.php b/tests/Utils/CLITest.php
index 124dc28f..61af7117 100644
--- a/tests/Utils/CLITest.php
+++ b/tests/Utils/CLITest.php
@@ -6,6 +6,7 @@
use PhpMyAdmin\SqlParser\Tests\TestCase;
use PhpMyAdmin\SqlParser\Utils\CLI;
+use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use PHPUnit\Framework\Attributes\DataProvider;
use function dirname;
@@ -13,6 +14,7 @@
use const PHP_BINARY;
+#[AllowMockObjectsWithoutExpectations]
class CLITest extends TestCase
{
/** @param array|false $getopt */