Skip to content

Commit 194feb1

Browse files
richardbrinkmanRichard Brinkman
andauthored
Fix: Removed some more E_DEPRECATED error explicit nullable types (#133)
Co-authored-by: Richard Brinkman <[email protected]>
1 parent b1b43b6 commit 194feb1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Caxy/HtmlDiff/HtmlDiffConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function setUseTableDiffing($useTableDiffing)
400400
*
401401
* @return $this
402402
*/
403-
public function setCacheProvider(\Doctrine\Common\Cache\Cache $cacheProvider = null)
403+
public function setCacheProvider(?\Doctrine\Common\Cache\Cache $cacheProvider = null)
404404
{
405405
$this->cacheProvider = $cacheProvider;
406406

lib/Caxy/HtmlDiff/LcsService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class LcsService
1717
*
1818
* @param MatchStrategyInterface $matchStrategy
1919
*/
20-
public function __construct(MatchStrategyInterface $matchStrategy = null)
20+
public function __construct(?MatchStrategyInterface $matchStrategy = null)
2121
{
2222
if (null === $matchStrategy) {
2323
$matchStrategy = new EqualMatchStrategy();

lib/Caxy/HtmlDiff/ListDiffLines.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ListDiffLines extends AbstractDiff
5151
*
5252
* @return ListDiffLines
5353
*/
54-
public static function create($oldText, $newText, HtmlDiffConfig $config = null)
54+
public static function create($oldText, $newText, ?HtmlDiffConfig $config = null)
5555
{
5656
$diff = new self($oldText, $newText);
5757

0 commit comments

Comments
 (0)