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

#385 fix issue where method code is 'null' for function strpos() #387

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbouma
Copy link

@rbouma rbouma commented Aug 5, 2024

Fix for #385

This PR addresses the issue where strpos() was being called with a potential null or non-string value for $method, which is deprecated in PHP 8.2.

Changes:

  • Replaced the previous direct call to strpos() with a check using is_string($method) && strpos($method, 'tig_postnl') !== false.
  • This ensures that $method is a string before attempting to use strpos(), thereby preventing any deprecation warnings and ensuring compatibility with PHP 8.2.

This update improves the stability of the code and ensures it behaves as expected without unnecessary checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants