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

Dependency issue in PHP 8.4.1: Implicitly marking parameter $options as nullable is deprecated #348

Open
jonaskohl opened this issue Nov 22, 2024 · 4 comments

Comments

@jonaskohl
Copy link

When upgrading my project to the newly released PHP 8.4.1, the following warning will be emitted via the opis/closure dependency:

Deprecated: Opis\Closure\unserialize(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead

As the latest version and latest commit of opis/closure were both almost 3 years ago, it is safe to assume that library is abandoned and should be removed/replaced as a dependency from this project.

@philipobenito
Copy link
Member

philipobenito commented Nov 22, 2024 via email

@jonaskohl
Copy link
Author

Way ahead of you. I already implemented a fix and opened a pull request over at opis/closure/pull/144.
It's literally a one-character fix 😄 (one missing ?).

@jonaskohl
Copy link
Author

As per opis/closure#144 (comment) there is a replacement library by Laravel: laravel/serializable-closure

@philipobenito
Copy link
Member

philipobenito commented Nov 22, 2024 via email

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

2 participants