@@ -83,7 +83,7 @@ public function testPrepareReturnsPreparedQuery(): void
8383
8484 public function testPrepareReturnsManualPreparedQuery (): void
8585 {
86- $ this ->query = $ this ->db ->prepare (static function ($ db ) {
86+ $ this ->query = $ this ->db ->prepare (static function ($ db ): Query {
8787 $ sql = "INSERT INTO {$ db ->protectIdentifiers ($ db ->DBPrefix . 'user ' )} ( "
8888 . $ db ->protectIdentifiers ('name ' ) . ', '
8989 . $ db ->protectIdentifiers ('email ' ) . ', '
@@ -127,7 +127,7 @@ public function testExecuteRunsQueryAndReturnsTrue(): void
127127
128128 public function testExecuteRunsQueryManualAndReturnsTrue (): void
129129 {
130- $ this ->query = $ this ->db ->prepare (static function ($ db ) {
130+ $ this ->query = $ this ->db ->prepare (static function ($ db ): Query {
131131 $ sql = "INSERT INTO {$ db ->protectIdentifiers ($ db ->DBPrefix . 'user ' )} ( "
132132 . $ db ->protectIdentifiers ('name ' ) . ', '
133133 . $ db ->protectIdentifiers ('email ' ) . ', '
@@ -164,7 +164,7 @@ public function testExecuteRunsQueryAndReturnsFalse(): void
164164
165165 public function testExecuteRunsQueryManualAndReturnsFalse (): void
166166 {
167- $ this ->query = $ this ->db ->prepare (static function ($ db ) {
167+ $ this ->query = $ this ->db ->prepare (static function ($ db ): Query {
168168 $ sql = "INSERT INTO {$ db ->protectIdentifiers ($ db ->DBPrefix . 'without_auto_increment ' )} ( "
169169 . $ db ->protectIdentifiers ('key ' ) . ', '
170170 . $ db ->protectIdentifiers ('value ' )
@@ -200,7 +200,7 @@ public function testExecuteSelectQueryAndCheckTypeAndResult(): void
200200
201201 public function testExecuteSelectQueryManualAndCheckTypeAndResult (): void
202202 {
203- $ this ->query = $ this ->db ->prepare (static function ($ db ) {
203+ $ this ->query = $ this ->db ->prepare (static function ($ db ): Query {
204204 $ sql = 'SELECT '
205205 . $ db ->protectIdentifiers ('name ' ) . ', '
206206 . $ db ->protectIdentifiers ('email ' ) . ', '
0 commit comments