Skip to content

Commit

Permalink
fix: properly make jsonSerialize PHP 8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
winternet-studio committed Feb 8, 2024
1 parent 646a20e commit 2685a19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x.*
3 changes: 2 additions & 1 deletion src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public function __construct($outputFromOtherInstance = null) {
*
* For example used when response is set to JSON in controller action and we just return this object (as per the crud2 generator).
*/
public function jsonSerialize(): mixed {
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return $this->response();
}

Expand Down

0 comments on commit 2685a19

Please sign in to comment.