Skip to content

Commit

Permalink
Fixed implicitly nullable parameter (#298)
Browse files Browse the repository at this point in the history
Fixes deprecation error in PHP 8.4
  • Loading branch information
gbespyatykh authored Dec 19, 2024
1 parent 5a168bf commit 9249e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ActionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9249e7b

Please sign in to comment.