-
-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
It's probably best to show this on the real case:
Kdyby\Events\EventsManager::setPanel()needs argument ofKdyby\Events\Diagnostics\PanelKdyby\Events\Diagnostics\PanelimplementsTracy\IBarPanel- kdyby/events has tracy/tracy as an optional dependency
- =>
Tracy\IBarPanelmay not exist - but that does not matter because
Kdyby\Events\Diagnostics\Panelis never loaded at all
The problem is that DependencyChecker is still trying to load the Kdyby\Events\Diagnostics\Panel class:
DependencyChecker::calculateHash()iterates over all public methods ofKdyby\Events\EventsManagerwhich of course includes thesetPanelmethodcalculateHashcallsDependencyChecker::hashParameters()which iterates over all parameters of thesetPanel()method (which is only the panel parameters).hashParameterscallsPhpReflection::getParameterType($param)getParameterTypecalls)$param->getClass()- that will try to autoload the
Kdyby\Events\Diagnostics\Panelclass - which of course fail with
Fatal error: Interface 'Tracy\IBarPanel' not found - (no ReflectionException to catch, just fatal error)
Metadata
Metadata
Assignees
Labels
No labels