Skip to content

Commit

Permalink
Revert "Return type to File::jsonSerialize for PHP8.1 deprecation"
Browse files Browse the repository at this point in the history
This reverts commit dc98e96.
This commit broke compatibility with PHP 7.
  • Loading branch information
BenMorel committed Nov 1, 2022
1 parent 3abcf1a commit e1e10a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct($id, $name, $hash = null, $size = null, $type = null
/**
* @return array
* */
public function jsonSerialize(): mixed
public function jsonSerialize()
{
return [
'id' => $this->getId(),
Expand Down

0 comments on commit e1e10a5

Please sign in to comment.