Skip to content

Conversation

sasezaki
Copy link
Contributor

@sasezaki sasezaki commented Oct 4, 2025

I found this with PHPStan level 5

vendor/bin/phpstan analyse --level=5 src
 3/3 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ --------------------------------------------------------------------------------------------------------------------------------------------
  Line   Test/TestLogger.php
 ------ --------------------------------------------------------------------------------------------------------------------------------------------
  51     Call to function is_string() with array will always evaluate to false.
         🪪  function.impossibleType
         💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon.
 ------ --------------------------------------------------------------------------------------------------------------------------------------------



 [ERROR] Found 1 error

@sasezaki sasezaki changed the title Updated - hasRecord() PHPDoc type hint, reflecting the actual method implementation Update hasRecord() PHPDoc type hint, reflecting the actual method implementation Oct 4, 2025
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.

1 participant