Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version 0.19.2 -> 0.19.3 #557

Open
beeyev opened this issue Jun 16, 2022 · 0 comments
Open

Update version 0.19.2 -> 0.19.3 #557

beeyev opened this issue Jun 16, 2022 · 0 comments

Comments

@beeyev
Copy link

beeyev commented Jun 16, 2022

Could you please make a bugfix update of the version 0.19.2

In order to fix this warning in PHP 8.1

Return type of League\Fractal\Scope::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/league/fractal/src/Scope.php on line 298  

We need to add the mentioned attribute:

https://github.com/thephpleague/fractal/blob/0.19.2/src/Scope.php#L298

/**
 * @return array
 */
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
    return $this->toArray();
}

There are some breaking changes in 0.20, so I can't just swap the version to the new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant