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 8.4 deprecation warnings for nullable parameters #55

Open
NiLon opened this issue Jan 29, 2025 · 1 comment
Open

PHP 8.4 deprecation warnings for nullable parameters #55

NiLon opened this issue Jan 29, 2025 · 1 comment

Comments

@NiLon
Copy link

NiLon commented Jan 29, 2025

There seems to be flood of deprecation warnings for nullable parameters all around the codebase. This bubbles down to other libs as well.

Deprecated: ByJG\DbMigration\Migration::reset(): Implicitly marking parameter $upVersion as nullable is deprecated, the explicit nullable type must be used instead

This style is deprecated:

function foo(string $bar = null) { }

Instead it has to be:

function foo(?string $bar = null) { }
@byjg
Copy link
Owner

byjg commented Jan 29, 2025

Thanks for letting us know.

We are starting to add the PHP 8.4 compatibility to all dependent classes. So far, we started the branch 5.1 on the highlighted boxes.

In the middle of the process, we found the anydataset-array will be deprecated and we will use anydataset instead. As soon we update this I'll let you know.

Image

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