Closed mohamed-hendawy closed 3 months ago
when we use $item->class === $controller->name it will return false for all methods from parent classes, so we need to check if $item->class is equal the current class or any parent class.
$item->class === $controller->name
$item->class
Not tested, but seems legit. Make sure to test thoroughly before deploying! Merged!!
when we use
$item->class === $controller->name
it will return false for all methods from parent classes, so we need to check if$item->class
is equal the current class or any parent class.