Skip to content

Commit

Permalink
Update Mapper_Shim.php to fix #20
Browse files Browse the repository at this point in the history
As suggested by @n0nag0n , use #[\ReturnTypeWillChange] instead the new type to be retro compatible.
  • Loading branch information
dantefff authored Feb 28, 2025
1 parent ed20b06 commit f37be0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/Mapper_Shim.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* This allows all mappers to be serializable with json
*/
class Mapper_Shim extends Db\SQL\Mapper implements JsonSerializable {
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return $this->cast();
}
Expand Down

0 comments on commit f37be0b

Please sign in to comment.