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

PCBC-1010: use explicit nullable types where applicable #182

Conversation

avsej
Copy link
Member

@avsej avsej commented Oct 2, 2024

Otherwise PHP 8.4 will emit deprecation warning

I used the following regexps to fix it:

  • when first argument is nullable
    s@(\([^?,]\+ \$[^,]\+ = null\)@(?\1@g
  • when any other argument is nullable
    s@, \([^?,]\+ \$[^,]\+ = null\)@, ?\1@g

Otherwise PHP 8.4 will emit deprecation warning
Copy link
Contributor

@Matt-Woz Matt-Woz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@avsej avsej merged commit 6c788db into couchbase:main Oct 2, 2024
63 of 69 checks passed
@avsej avsej deleted the PCBC-1010-fix-deprecation-warning-with-nullable-parameters branch October 2, 2024 15:44
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