From d2eaba0959f0236059902311b14e8a409096d37d Mon Sep 17 00:00:00 2001 From: Paul Vogel Date: Fri, 20 Dec 2024 15:00:23 +0100 Subject: [PATCH] add a ? to implicitly nullable parameter types to make them explicitly nullable --- src/Log/AnalysableLog.php | 2 +- src/Log/AnalysableLogInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Log/AnalysableLog.php b/src/Log/AnalysableLog.php index e990bb0..92ea131 100644 --- a/src/Log/AnalysableLog.php +++ b/src/Log/AnalysableLog.php @@ -24,7 +24,7 @@ abstract class AnalysableLog extends Log implements AnalysableLogInterface * @param AnalyserInterface|null $analyser * @return AnalysisInterface */ - public function analyse(AnalyserInterface $analyser = null): AnalysisInterface + public function analyse(?AnalyserInterface $analyser = null): AnalysisInterface { if ($this->analysis !== null) { return $this->analysis; diff --git a/src/Log/AnalysableLogInterface.php b/src/Log/AnalysableLogInterface.php index c8ad596..34e9931 100644 --- a/src/Log/AnalysableLogInterface.php +++ b/src/Log/AnalysableLogInterface.php @@ -29,5 +29,5 @@ public static function getDefaultAnalyser(): AnalyserInterface; * @param AnalyserInterface|null $analyser * @return AnalysisInterface */ - public function analyse(AnalyserInterface $analyser = null): AnalysisInterface; + public function analyse(?AnalyserInterface $analyser = null): AnalysisInterface; } \ No newline at end of file