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

add functions Safe\*val #427

Closed
frederic100 opened this issue Oct 14, 2023 · 1 comment
Closed

add functions Safe\*val #427

frederic100 opened this issue Oct 14, 2023 · 1 comment
Labels
question Further information is requested

Comments

@frederic100
Copy link

frederic100 commented Oct 14, 2023

[str|int|bool|float]val PHP functions generate phpstan errors (these errors appear at level 9 and are legitimate) (source: phpstan/phpstan#9295 ).

Would it be interesting to add them to Safe ?

@shish shish added the question Further information is requested label Feb 3, 2025
@shish
Copy link
Collaborator

shish commented Feb 3, 2025

Scanning that discussion, I'm not sure how Safe would help? "passing a mixed to a function which only accepts a few specific types" seems like a PHP error rather than Safe's usecase of "turn functions-which-return-false-on-error into functions-which-throw-exceptions-on-error" -- feel free to comment with more info if I'm missing something

@shish shish closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants