Skip to content

Conversation

ahilespelid
Copy link

it is known that 'is_scalar' does not skip 'null', but the documentation indicates that some resources may be skipped in the future, and since hypothetically a resource can return 'null', the code uses an excessive check for null '$logic_parametr ?? 0'. If you look under the hood of filter_var FILTER_VALIDATE_BOOLEAN, it is known that null returns false, so this construction is '$logic_parametr ?? 0' is redundant and must be replaced by '$logic_parametr'

Copy link
Member

@sy-records sy-records left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, but where should the method added here be used?

@derickr
Copy link
Member

derickr commented Aug 25, 2025

I think we can just close this now.

@sy-records sy-records closed this Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants