From 21c62120deb3cfeaaaa61644f57d5bfdb3ea5a7c Mon Sep 17 00:00:00 2001 From: George Bespyatykh Date: Mon, 25 Nov 2024 20:18:57 +0300 Subject: [PATCH] Fixed implicitly nullable parameter Fixes deprecation error in PHP 8.4 --- src/ActionManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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