scrutinizer-ci / scrutinizer

Legacy repository - archives past feature requests/bug reports
https://scrutinizer-ci.com/docs
140 stars 36 forks source link

PHP 5.5 ::class resolution #340

Open tonglil opened 9 years ago

tonglil commented 9 years ago
function () { \Queue...SomeQueue::class); } is of type object<Closure>, but the function expects a string. 

Using class resolution, the value is a string.

class TestClass {}
echo gettype(TestClass::class); // string