nette / robot-loader

🍀 RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.
https://doc.nette.org/robotloader
Other
871 stars 32 forks source link

Bug: Ignore ClassName::class syntax #1

Closed mishak87 closed 10 years ago

mishak87 commented 10 years ago
<?php
Custom::class;
A::class;

Throws Ambiguous class resolution; defined in classes.php and in classes.php..

milo commented 10 years ago

What you get on...

new Custom;
new A;

?

mishak87 commented 10 years ago

@milo Problem is with parsing php file that has this code. So if I include such file anywhere in robots search path and ask for unknown class he will give me this instead.