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

Fix RiskyTruthyFalsyComparison #94

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

antonioeatgoat
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

What kind of change does this PR introduce?
Fixes PSALM alert RiskyTruthyFalsyComparison.

Other information:
FILE: Inpsyde/Helpers/FunctionDocBlock.php

Operand of type list<string>|null contains type list<string>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead.

@antonioeatgoat antonioeatgoat marked this pull request as draft June 28, 2024 16:12
@antonioeatgoat antonioeatgoat marked this pull request as ready for review July 1, 2024 08:31
@antonioeatgoat antonioeatgoat merged commit 3ca8344 into version/2 Jul 3, 2024
32 checks passed
@antonioeatgoat antonioeatgoat deleted the fix-risky-truthy-comparison branch July 3, 2024 16:06
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

Successfully merging this pull request may close these issues.

5 participants