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

Switch the native function calls to thecodingmachine/safe #1168

Open
oliverklee opened this issue Mar 14, 2025 · 0 comments
Open

Switch the native function calls to thecodingmachine/safe #1168

oliverklee opened this issue Mar 14, 2025 · 0 comments

Comments

@oliverklee
Copy link
Contributor

This package provides versions of native PHP functions that throw an exception in case of an error instead of returning false. We also should use the corresponding set of PHPStan rules to make sure we use the safe version of functions.

Due to us supporting PHP 7.x as well, we need to use lower versions of these packages:

  • thecodingmachine/safe 1.3.3
  • thecodingmachine/phpstan-safe-rule 1.2.0 || 1.4.0 (to allow PHPStan 2)
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

1 participant