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

PHP warning on PHP 8.1 #107

Closed
come-nc opened this issue Oct 21, 2021 · 3 comments
Closed

PHP warning on PHP 8.1 #107

come-nc opened this issue Oct 21, 2021 · 3 comments

Comments

@come-nc
Copy link

come-nc commented Oct 21, 2021

These two deprecations warnings are showing:

PHP Deprecated:  Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/mcmic/dev/opis/closure/src/SerializableClosure.php on line 18
PHP Deprecated:  Return type of Opis\Closure\ReflectionClosure::isStatic() should either be compatible with ReflectionFunctionAbstract::isStatic(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/mcmic/dev/opis/closure/src/ReflectionClosure.php on line 49
@GrahamCampbell
Copy link
Contributor

GrahamCampbell commented Oct 21, 2021

See #102. It is not possible to support PHP 8.1 here. You can use Laravel's fork or the experimental FFI version of this package.

@ankitsingh12341
Copy link

what is the solution for Opis\Closure\SerializableClosure implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) please help for us.. what is exacrt solution

@GrahamCampbell
Copy link
Contributor

There is no solution other than one I provided. v3 of this package does not support PHP 8.1 or higher.

@opis opis locked as resolved and limited conversation to collaborators Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants