diff --git a/src/ActionManager.php b/src/ActionManager.php index 574534d..94647b6 100755 --- a/src/ActionManager.php +++ b/src/ActionManager.php @@ -131,7 +131,7 @@ public function identifyAndDecorate($instance) return $designPattern->decorate($instance, $frame); } - public function identifyFromBacktrace($usedTraits, BacktraceFrame &$frame = null): ?DesignPattern + public function identifyFromBacktrace($usedTraits, ?BacktraceFrame &$frame = null): ?DesignPattern { $designPatterns = $this->getDesignPatternsMatching($usedTraits); $backtraceOptions = DEBUG_BACKTRACE_PROVIDE_OBJECT