File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ public function statement(): \PDOStatement
453453 * @param int $fetchStyle
454454 * @return array|object|false
455455 */
456- public function queryOne (int $ fetchStyle = null )
456+ public function queryOne (? int $ fetchStyle = null )
457457 {
458458 $ fetchStyle = $ fetchStyle ?: $ this ->options [\PDO ::ATTR_DEFAULT_FETCH_MODE ];
459459 return $ this ->statement ->fetch ($ fetchStyle );
@@ -464,7 +464,7 @@ public function queryOne(int $fetchStyle = null)
464464 * @param int $fetchStyle
465465 * @return array
466466 */
467- public function queryAll (int $ fetchStyle = null ): array
467+ public function queryAll (? int $ fetchStyle = null ): array
468468 {
469469 $ fetchStyle = $ fetchStyle ?: $ this ->options [\PDO ::ATTR_DEFAULT_FETCH_MODE ];
470470 return $ this ->statement ->fetchAll ($ fetchStyle );
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ class Connection extends AbstractConnection
1111
1212 protected $ exceptional = false ;
1313
14- public function queryOne (int $ fetchStyle = null )
14+ public function queryOne (? int $ fetchStyle = null )
1515 {
1616 return $ this ->call (__FUNCTION__ , func_get_args ());
1717 }
1818
19- public function queryAll (int $ fetchStyle = null ): array
19+ public function queryAll (? int $ fetchStyle = null ): array
2020 {
2121 return $ this ->call (__FUNCTION__ , func_get_args ());
2222 }
You can’t perform that action at this time.
0 commit comments