Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
-
None
Description
Current method signature:
public function sudo(callable $callback, self $outerRepository = null);
It forces descendants to change typehint to Repository. While it works (because descendants inherits Repository anyway), self is invalid in this context. self should be used only in case of indicating self-referenced instances, and not for typehinting current interface.