Skip to content

fix: explicity mark type as nullable to avoid PHP 8.4 Deprecation warning #57

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

Closed
wants to merge 1 commit into from

Conversation

RuggMatt
Copy link
Contributor

@RuggMatt RuggMatt commented May 22, 2025

This fixes the following deprecation warning in PHP 8.4

Deprecated: ByJG\DbMigration\Migration::reset(): Implicitly marking parameter $upVersion as nullable is deprecated, the explicit nullable type must be used instead in /****/vendor/byjg/migration/src/Migration.php on line 239

Note

I'm currently writing a description for your pull request. I should be done shortly (<1 minute). Please don't edit the description field until I'm finished, or we may overwrite each other. If I find nothing to write about, I'll delete this message.

Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've completed my review and didn't find any issues... but I did find this kitten.

    |\__/,|   (`\
  _.|o o  |_   ) )
-(((---(((--------
Files scanned
File Path Reviewed
src/Migration.php

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@RuggMatt
Copy link
Contributor Author

I guess this will be fixed in version 6 anyway. :)

@RuggMatt RuggMatt closed this May 22, 2025
@byjg
Copy link
Owner

byjg commented May 22, 2025

Since version 5.x doesn't limit the upper PHP version we have two options.

  1. Reopen and I merge your PR
  2. You can use 6.0.x-dev which fix this and implement some new things.

If you want me to merge your PR let me know.

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

Successfully merging this pull request may close these issues.

2 participants