From 08c19ea6cc8ac6308bdeb2b6fb24672e0e1f76ec Mon Sep 17 00:00:00 2001 From: Daniel Badura Date: Fri, 23 Sep 2022 17:13:08 +0200 Subject: [PATCH] Update phpstan baseline to remove an entry. Also added one entry to psalm baseline regarding DateTimeImmutable::modify which can result `false` in some cases. In our case this is not possible and should also be fixed with the next release. Ref: https://psalm.dev/r/8f44d5ca2d Also ref: https://github.com/vimeo/psalm/pull/8462 --- baseline.xml | 7 ++++++- phpstan-baseline.neon | 5 ----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/baseline.xml b/baseline.xml index a127f06a..834c0a9e 100644 --- a/baseline.xml +++ b/baseline.xml @@ -1,5 +1,10 @@ - + + + + $this->frozenDateTime->modify(sprintf('+%s seconds', $seconds)) + + $sleep diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 183b371b..c60b17ec 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,11 +5,6 @@ parameters: count: 1 path: src/Console/DoctrineHelper.php - - - message: "#^Parameter \\#1 \\$params of static method Doctrine\\\\DBAL\\\\DriverManager\\:\\:getConnection\\(\\) expects array\\{charset\\?\\: string, dbname\\?\\: string, default_dbname\\?\\: string, driver\\?\\: 'ibm_db2'\\|'mysqli'\\|'oci8'\\|'pdo_mysql'\\|'pdo_oci'\\|'pdo_pgsql'\\|'pdo_sqlite'\\|'pdo_sqlsrv'\\|'sqlsrv', driverClass\\?\\: class\\-string\\, driverOptions\\?\\: array, host\\?\\: string, keepSlave\\?\\: bool, \\.\\.\\.\\}, array\\<'charset'\\|'default_dbname'\\|'defaultTableOptions'\\|'driver'\\|'driverClass'\\|'driverOptions'\\|'host'\\|'keepReplica'\\|'keepSlave'\\|'master'\\|'memory'\\|'password'\\|'pdo'\\|'platform'\\|'port'\\|'primary'\\|'replica'\\|'serverVersion'\\|'sharding'\\|'slaves'\\|'unix_socket'\\|'user'\\|'wrapperClass', array\\|bool\\|Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\|int\\|PDO\\|string\\> given\\.$#" - count: 1 - path: src/Console/DoctrineHelper.php - - message: "#^If condition is always false\\.$#" count: 1