diff --git a/composer.json b/composer.json index 0b8ab47abc4..92a14b424bb 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ "doctrine/coding-standard": "12.0.0", "fig/log-test": "^1", "jetbrains/phpstorm-stubs": "2023.1", - "phpstan/phpstan": "1.10.21", + "phpstan/phpstan": "1.10.26", "phpstan/phpstan-strict-rules": "^1.5", "phpunit/phpunit": "9.6.9", "psalm/plugin-phpunit": "0.18.4", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 3dfbb66ac8d..dd7e3b2e447 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -136,5 +136,9 @@ parameters: message: '~^Strict comparison using === between array and false will always evaluate to false\.$~' paths: - src/Driver/PgSQL/Result.php + + # Ignore the possible false return value of db2_num_rows(). + - '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Connection\:\:exec\(\) should return int but returns int<0, max>\|false\.$~' + - '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Result\:\:rowCount\(\) should return int but returns int<0, max>\|false\.$~' includes: - vendor/phpstan/phpstan-strict-rules/rules.neon