Instanceof and namespaces

后端 未结 3 2025
南旧
南旧 2020-12-18 21:02

I am facing an unexpected behaviour trying to use the following:

$object instanceof $class

1/ PHP \'instanceof\' keyword and namespaces wor

3条回答
  •  执念已碎
    2020-12-18 21:46

    I use simpler variant

    var_dump($object instanceof \Tools\Tests\Entity\testClass);
    

提交回复
热议问题