diff --git a/lib/Caxy/HtmlDiff/HtmlDiffConfig.php b/lib/Caxy/HtmlDiff/HtmlDiffConfig.php index 9d1fe51..8de36b8 100644 --- a/lib/Caxy/HtmlDiff/HtmlDiffConfig.php +++ b/lib/Caxy/HtmlDiff/HtmlDiffConfig.php @@ -400,7 +400,7 @@ public function setUseTableDiffing($useTableDiffing) * * @return $this */ - public function setCacheProvider(\Doctrine\Common\Cache\Cache $cacheProvider = null) + public function setCacheProvider(?\Doctrine\Common\Cache\Cache $cacheProvider = null) { $this->cacheProvider = $cacheProvider; diff --git a/lib/Caxy/HtmlDiff/LcsService.php b/lib/Caxy/HtmlDiff/LcsService.php index 6de3727..9d6d865 100644 --- a/lib/Caxy/HtmlDiff/LcsService.php +++ b/lib/Caxy/HtmlDiff/LcsService.php @@ -17,7 +17,7 @@ class LcsService * * @param MatchStrategyInterface $matchStrategy */ - public function __construct(MatchStrategyInterface $matchStrategy = null) + public function __construct(?MatchStrategyInterface $matchStrategy = null) { if (null === $matchStrategy) { $matchStrategy = new EqualMatchStrategy(); diff --git a/lib/Caxy/HtmlDiff/ListDiffLines.php b/lib/Caxy/HtmlDiff/ListDiffLines.php index cc1c6c0..cfc68c7 100644 --- a/lib/Caxy/HtmlDiff/ListDiffLines.php +++ b/lib/Caxy/HtmlDiff/ListDiffLines.php @@ -51,7 +51,7 @@ class ListDiffLines extends AbstractDiff * * @return ListDiffLines */ - public static function create($oldText, $newText, HtmlDiffConfig $config = null) + public static function create($oldText, $newText, ?HtmlDiffConfig $config = null) { $diff = new self($oldText, $newText);