@@ -273,23 +273,23 @@ public function testFetchAssocBadDescriptor(): void
273273
274274 Tester \Assert::exception (static function () use ($ result ): void {
275275 $ result ->fetchAssoc ('' );
276- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
276+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
277277
278278 Tester \Assert::exception (static function () use ($ result ): void {
279279 $ result ->fetchAssoc ('=types ' );
280- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
280+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
281281
282282 Tester \Assert::exception (static function () use ($ result ): void {
283283 $ result ->fetchAssoc ('|types ' );
284- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
284+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
285285
286286 Tester \Assert::exception (static function () use ($ result ): void {
287287 $ result ->fetchAssoc ('types= ' );
288- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
288+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
289289
290290 Tester \Assert::exception (static function () use ($ result ): void {
291291 $ result ->fetchAssoc ('types| ' );
292- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
292+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_ASSOC_BAD_DESCRIPTOR );
293293
294294 $ result ->free ();
295295 }
@@ -310,7 +310,7 @@ public function testFetchAssocNoColumn(): void
310310
311311 Tester \Assert::exception (static function () use ($ result ): void {
312312 $ result ->fetchAssoc ('id=types ' );
313- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_ASSOC_NO_COLUMN );
313+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_ASSOC_NO_COLUMN );
314314
315315 $ result ->free ();
316316 }
@@ -353,7 +353,7 @@ public function testFetchAssocObjectAsKey(): void
353353
354354 Tester \Assert::exception (static function () use ($ result ): void {
355355 $ result ->fetchAssoc ('test_date=id ' );
356- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_ASSOC_ONLY_SCALAR_AS_KEY );
356+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_ASSOC_ONLY_SCALAR_AS_KEY );
357357
358358 $ result ->free ();
359359 }
@@ -399,7 +399,7 @@ public function testFetchPairsOnlyOneColumn(): void
399399
400400 Tester \Assert::exception (static function () use ($ result ): void {
401401 $ result ->fetchPairs ('name ' );
402- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_PAIRS_BAD_COLUMNS );
402+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_PAIRS_BAD_COLUMNS );
403403
404404 $ result ->free ();
405405 }
@@ -445,7 +445,7 @@ public function testFetchPairsObjectAsKey(): void
445445
446446 Tester \Assert::exception (static function () use ($ result ): void {
447447 $ result ->fetchPairs ('test_date ' , 'id ' );
448- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::FETCH_PAIRS_ONLY_SCALAR_AS_KEY );
448+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::FETCH_PAIRS_ONLY_SCALAR_AS_KEY );
449449
450450 $ result ->free ();
451451 }
@@ -467,12 +467,12 @@ public function testFetchPairsBadKeyOrValue(): void
467467 // Bad key
468468 Tester \Assert::exception (static function () use ($ result ): void {
469469 $ result ->fetchPairs ('type ' , 'name ' );
470- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::NO_COLUMN );
470+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::NO_COLUMN );
471471
472472 // Bad value
473473 Tester \Assert::exception (static function () use ($ result ): void {
474474 $ result ->fetchPairs ('id ' , 'type ' );
475- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::NO_COLUMN );
475+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::NO_COLUMN );
476476
477477 $ result ->free ();
478478 }
@@ -504,19 +504,19 @@ public function testFetchBadOffset(): void
504504
505505 Tester \Assert::exception (static function () use ($ row ): void {
506506 $ row [1 ];
507- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NOT_STRING_KEY );
507+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NOT_STRING_KEY );
508508
509509 Tester \Assert::exception (static function () use ($ row ): void {
510510 $ row [1 ] = 'value ' ;
511- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NOT_STRING_KEY );
511+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NOT_STRING_KEY );
512512
513513 Tester \Assert::exception (static function () use ($ row ): void {
514514 isset ($ row [1 ]);
515- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NOT_STRING_KEY );
515+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NOT_STRING_KEY );
516516
517517 Tester \Assert::exception (static function () use ($ row ): void {
518518 unset($ row [1 ]);
519- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NOT_STRING_KEY );
519+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NOT_STRING_KEY );
520520
521521 $ result ->free ();
522522 }
@@ -539,7 +539,7 @@ public function testFetchNoColumn(): void
539539
540540 Tester \Assert::exception (static function () use ($ row ): void {
541541 $ row ->cnt ;
542- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NO_COLUMN );
542+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NO_COLUMN );
543543
544544 $ result ->free ();
545545 }
@@ -666,7 +666,7 @@ public function testResultNoColumnForType(): void
666666
667667 Tester \Assert::exception (static function () use ($ result ): void {
668668 $ result ->getColumnType ('count ' );
669- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::NO_COLUMN );
669+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::NO_COLUMN );
670670
671671 $ result ->free ();
672672 }
@@ -680,7 +680,7 @@ public function testResultColumnIsAlreadyInUse(): void
680680 $ row = $ result ->fetch ();
681681 \assert ($ row !== null );
682682 $ row ->column ;
683- }, Db \Exceptions \ResultException::class, null , Db \Exceptions \ResultException::COLUMN_NAME_IS_ALREADY_IN_USE );
683+ }, Db \Exceptions \ResultException::class, code: Db \Exceptions \ResultException::COLUMN_NAME_IS_ALREADY_IN_USE );
684684
685685 $ result ->free ();
686686 }
@@ -770,11 +770,11 @@ public function testRowValues(): void
770770
771771 Tester \Assert::exception (static function () use ($ row ): void {
772772 $ row ->type ;
773- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NO_COLUMN );
773+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NO_COLUMN );
774774
775775 Tester \Assert::exception (static function () use ($ row ): void {
776776 $ row ['another_type ' ];
777- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NO_COLUMN );
777+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NO_COLUMN );
778778
779779 $ row ->type = 'test ' ;
780780
@@ -794,15 +794,15 @@ public function testRowValues(): void
794794
795795 Tester \Assert::exception (static function () use ($ row ): void {
796796 $ row ->type ;
797- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NO_COLUMN );
797+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NO_COLUMN );
798798
799799 unset($ row ['another_type ' ]);
800800
801801 Tester \Assert::false (isset ($ row ['another_type ' ]));
802802
803803 Tester \Assert::exception (static function () use ($ row ): void {
804804 $ row ['another_type ' ];
805- }, Db \Exceptions \RowException::class, null , Db \Exceptions \RowException::NO_COLUMN );
805+ }, Db \Exceptions \RowException::class, code: Db \Exceptions \RowException::NO_COLUMN );
806806
807807 unset($ row ->name );
808808
0 commit comments