From 9fb9dff6cd7df77df395e2184a13455b40b620e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 15 Aug 2023 11:20:36 +0200 Subject: [PATCH] fix stan --- phpstan.neon.dist | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 040aabb81..8416cbbe8 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -36,6 +36,16 @@ parameters: path: '*' count: 3 + # TODO for DBAL 4.x upgrade + - + message: '~^Instantiation of deprecated class Doctrine\\DBAL\\Event\\Listeners\\OracleSessionInit:\nUse \{@see \\Doctrine\\DBAL\\Driver\\OCI8\\Middleware\\InitializeSession\} instead\.$~' + path: 'src/Persistence/Sql/Oracle/Connection.php' + count: 1 + - + message: '~^(Fetching deprecated class constant postConnect of class Doctrine\\DBAL\\Events\.|Fetching class constant postConnect of deprecated class Doctrine\\DBAL\\Events\.|Parameter \$args of method postConnect\(\) in anonymous class has typehint with deprecated class Doctrine\\DBAL\\Event\\ConnectionEventArgs\.)$~' + path: 'src/Persistence/Sql/Sqlite/Connection.php' + count: 3 + # TODO these rules are generated, this ignores should be fixed in the code # for src/Schema/TestCase.php - '~^Call to an undefined method Atk4\\Data\\Persistence::dsql\(\)\.$~'