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

Convert ini_get result to bool before evaluating #446

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

74656c
Copy link
Contributor

@74656c 74656c commented Aug 10, 2022

ini_get returns a string, so checking === 0 won't work.
Convert ini_get result to bool before evaluating.
FILTER_VALIDATE_BOOLEAN will return true for ["1", "true", "on" and "yes"] and false for ["0", "false", "off" and "no"]

…LEAN will return true for ["1", "true", "on" and "yes"] and false for ["0", "false", "off" and "no"]
@derrabus derrabus added the bug label Oct 5, 2022
@derrabus derrabus changed the base branch from 1.13.x to 1.14.x August 14, 2023 09:49
@derrabus derrabus merged commit 8731163 into doctrine:1.14.x Sep 5, 2024
@derrabus derrabus added this to the 1.14.4 milestone Sep 5, 2024
derrabus added a commit to derrabus/annotations that referenced this pull request Sep 5, 2024
* 1.14.x:
  Bump CI actions (doctrine#497)
  Fix CS
  Convert ini_get result to bool before evaluating (doctrine#446)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants