The Callable type hint is awesome but what if I want to check in an if/else situation?
instanceof Callable does not appear to work.
<?php
$bob = "blah";
if($bob instanceof Callable) {
echo "x";
}
The Callable type hint is awesome but what if I want to check in an if/else situation?
instanceof Callable does not appear to work.
<?php
$bob = "blah";
if($bob instanceof Callable) {
echo "x";
}