Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Caxy/HtmlDiff/HtmlDiffConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion lib/Caxy/HtmlDiff/LcsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion lib/Caxy/HtmlDiff/ListDiffLines.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down