-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Labels
Milestone
Description
Bug report
empty() and isset() are considered as callable by PHPStan while they're not.
Code snippet that reproduces the problem
<?php
var_dump(is_callable('empty')); // bool(false)
var_dump(is_callable('isset')); // bool(false)https://phpstan.org/r/c8e58374-a244-41c8-927c-1905a945389e
Call to function is_callable() with 'empty' will always evaluate to true.
Call to function is_callable() with 'isset' will always evaluate to true.
Expected output
Call to function is_callable() with 'empty' will always evaluate to false.
Call to function is_callable() with 'isset' will always evaluate to false.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is an awesome tool. Thanks for your work!