@@ -3737,7 +3737,7 @@ public static function fromReflection(GenericReflection $reflection, array $colu
3737
3737
return new ReflectedColumn ($ name , $ type , $ length , $ precision , $ scale , $ nullable , $ pk , $ fk );
3738
3738
}
3739
3739
3740
- public static function fromJson (/* object */ $ json ): ReflectedColumn
3740
+ public static function fromJson ( /* object */ $ json ): ReflectedColumn
3741
3741
{
3742
3742
$ name = $ json ->name ;
3743
3743
$ type = $ json ->type ;
@@ -3856,7 +3856,7 @@ public function serialize()
3856
3856
];
3857
3857
}
3858
3858
3859
- public function jsonSerialize ()
3859
+ public function jsonSerialize (): mixed
3860
3860
{
3861
3861
return array_filter ($ this ->serialize ());
3862
3862
}
@@ -3891,7 +3891,7 @@ public static function fromReflection(GenericReflection $reflection): ReflectedD
3891
3891
return new ReflectedDatabase ($ tableTypes );
3892
3892
}
3893
3893
3894
- public static function fromJson (/* object */ $ json ): ReflectedDatabase
3894
+ public static function fromJson ( /* object */ $ json ): ReflectedDatabase
3895
3895
{
3896
3896
$ tableTypes = (array ) $ json ->tables ;
3897
3897
return new ReflectedDatabase ($ tableTypes );
@@ -3928,7 +3928,7 @@ public function serialize()
3928
3928
];
3929
3929
}
3930
3930
3931
- public function jsonSerialize ()
3931
+ public function jsonSerialize (): mixed
3932
3932
{
3933
3933
return $ this ->serialize ();
3934
3934
}
@@ -4098,7 +4098,7 @@ public function serialize()
4098
4098
];
4099
4099
}
4100
4100
4101
- public function jsonSerialize ()
4101
+ public function jsonSerialize (): mixed
4102
4102
{
4103
4103
return $ this ->serialize ();
4104
4104
}
@@ -6587,6 +6587,7 @@ public function rollBack(): bool
6587
6587
return $ this ->pdo ()->rollBack ();
6588
6588
}
6589
6589
6590
+ #[\ReturnTypeWillChange]
6590
6591
public function errorCode (): mixed
6591
6592
{
6592
6593
return $ this ->pdo ()->errorCode ();
@@ -6602,7 +6603,8 @@ public function exec($query): int
6602
6603
return $ this ->pdo ()->exec ($ query );
6603
6604
}
6604
6605
6605
- public function prepare ($ statement , $ options = array ())
6606
+ #[\ReturnTypeWillChange]
6607
+ public function prepare ($ statement , $ options = array ()): mixed
6606
6608
{
6607
6609
return $ this ->pdo ()->prepare ($ statement , $ options );
6608
6610
}
@@ -6870,7 +6872,7 @@ public function serialize()
6870
6872
];
6871
6873
}
6872
6874
6873
- public function jsonSerialize ()
6875
+ public function jsonSerialize (): mixed
6874
6876
{
6875
6877
return $ this ->serialize ();
6876
6878
}
@@ -6901,7 +6903,7 @@ public function serialize()
6901
6903
];
6902
6904
}
6903
6905
6904
- public function jsonSerialize ()
6906
+ public function jsonSerialize (): mixed
6905
6907
{
6906
6908
return array_filter ($ this ->serialize (), function ($ v ) {
6907
6909
return $ v !== -1 ;
@@ -7096,7 +7098,7 @@ public function serialize()
7096
7098
];
7097
7099
}
7098
7100
7099
- public function jsonSerialize ()
7101
+ public function jsonSerialize (): mixed
7100
7102
{
7101
7103
return $ this ->serialize ();
7102
7104
}
@@ -9585,7 +9587,7 @@ public function has(string $path): bool
9585
9587
return true ;
9586
9588
}
9587
9589
9588
- public function jsonSerialize ()
9590
+ public function jsonSerialize (): mixed
9589
9591
{
9590
9592
return $ this ->root ;
9591
9593
}
@@ -10347,9 +10349,9 @@ public function serialize()
10347
10349
];
10348
10350
}
10349
10351
10350
- public function jsonSerialize ()
10352
+ public function jsonSerialize (): mixed
10351
10353
{
10352
- return array_filter ($ this ->serialize (), function ($ v ) {return $ v !==null ;});
10354
+ return array_filter ($ this ->serialize (), function ($ v ) {return $ v !== null ;});
10353
10355
}
10354
10356
10355
10357
public static function fromException (\Throwable $ exception , bool $ debug )
@@ -10367,7 +10369,7 @@ public static function fromException(\Throwable $exception, bool $debug)
10367
10369
} elseif (strpos (strtolower ($ exception ->getMessage ()), 'constraint ' ) !== false ) {
10368
10370
$ document = new ErrorDocument (new ErrorCode (ErrorCode::DATA_INTEGRITY_VIOLATION ), '' , null );
10369
10371
} else {
10370
- $ message = $ debug? $ exception ->getMessage (): 'PDOException occurred (enable debug mode) ' ;
10372
+ $ message = $ debug ? $ exception ->getMessage () : 'PDOException occurred (enable debug mode) ' ;
10371
10373
$ document = new ErrorDocument (new ErrorCode (ErrorCode::ERROR_NOT_FOUND ), $ message , null );
10372
10374
}
10373
10375
}
@@ -10409,7 +10411,7 @@ public function serialize()
10409
10411
];
10410
10412
}
10411
10413
10412
- public function jsonSerialize ()
10414
+ public function jsonSerialize (): mixed
10413
10415
{
10414
10416
return array_filter ($ this ->serialize (), function ($ v ) {
10415
10417
return $ v !== -1 ;
@@ -10770,7 +10772,7 @@ class PathTree implements \JsonSerializable
10770
10772
10771
10773
private $ tree ;
10772
10774
10773
- public function __construct (/* object */ &$ tree = null )
10775
+ public function __construct ( /* object */ &$ tree = null )
10774
10776
{
10775
10777
if (!$ tree ) {
10776
10778
$ tree = $ this ->newTree ();
@@ -10830,12 +10832,12 @@ public function match(array $path): array
10830
10832
return $ tree ->values ;
10831
10833
}
10832
10834
10833
- public static function fromJson (/* object */ $ tree ): PathTree
10835
+ public static function fromJson ( /* object */ $ tree ): PathTree
10834
10836
{
10835
10837
return new PathTree ($ tree );
10836
10838
}
10837
10839
10838
- public function jsonSerialize ()
10840
+ public function jsonSerialize (): mixed
10839
10841
{
10840
10842
return $ this ->tree ;
10841
10843
}
0 commit comments