File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,14 @@ public function execute(array $params = []) {
81
81
* @return array<mixed, mixed>
82
82
*/
83
83
public function fetchAll ($ fetchStyle = PDO ::FETCH_ASSOC , $ fetchArgument = null , array $ ctorArgs = []): array {
84
- $ result = $ this ->exceptionHandler (function () use ($ fetchStyle , $ fetchArgument , $ ctorArgs ) {
84
+ $ result = $ x = $ this ->exceptionHandler (function () use ($ fetchStyle , $ fetchArgument , $ ctorArgs ) {
85
85
if ($ fetchArgument !== null ) {
86
86
return $ this ->statement ->fetchAll ($ fetchStyle , $ fetchArgument , ...$ ctorArgs );
87
87
}
88
88
return $ this ->statement ->fetchAll ($ fetchStyle );
89
89
});
90
- if (is_bool ($ result )) {
90
+ /** @var array<mixed, mixed>|false $x */
91
+ if ($ x === false ) {
91
92
return [];
92
93
}
93
94
return $ result ;
You can’t perform that action at this time.
0 commit comments