Skip to content

Commit 195aad3

Browse files
authored
PHPStan 1.10.26 (#6116)
| Q | A |------------- | ----------- | Type | improvement | Fixed issues | N/A #### Summary Apparently, the stubs for `db2_num_rows()` were changed upstream. I'm ignoring the error for now, maybe we can fix it on 3.7.x if we feel like it's worth doing.
1 parent f94be5b commit 195aad3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"doctrine/coding-standard": "12.0.0",
4444
"fig/log-test": "^1",
4545
"jetbrains/phpstorm-stubs": "2023.1",
46-
"phpstan/phpstan": "1.10.21",
46+
"phpstan/phpstan": "1.10.26",
4747
"phpstan/phpstan-strict-rules": "^1.5",
4848
"phpunit/phpunit": "9.6.9",
4949
"psalm/plugin-phpunit": "0.18.4",

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,9 @@ parameters:
136136
message: '~^Strict comparison using === between array<int, array> and false will always evaluate to false\.$~'
137137
paths:
138138
- src/Driver/PgSQL/Result.php
139+
140+
# Ignore the possible false return value of db2_num_rows().
141+
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Connection\:\:exec\(\) should return int but returns int<0, max>\|false\.$~'
142+
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Result\:\:rowCount\(\) should return int but returns int<0, max>\|false\.$~'
139143
includes:
140144
- vendor/phpstan/phpstan-strict-rules/rules.neon

0 commit comments

Comments
 (0)