Skip to content

Commit ee5e896

Browse files
committed
fix: deprecated argument syntax
1 parent c6f3868 commit ee5e896

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
}
1010
],
1111
"license": "MIT",
12-
"version": "1.0.2",
12+
"version": "1.0.3",
1313
"require": {
14-
"php": "^7.0|^8.0"
14+
"php": "^7.1|^8.0"
1515
},
1616
"minimum-stability": "stable",
1717
"autoload": {

src/LevenshteinDiffCalculator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class LevenshteinDiffCalculator implements StringDiffCalculatorInterface
2828

2929
public function __construct(
3030
string $separatorRegex = self::SPLIT_CHARS_REGEX,
31-
OperationCostCalculator $operationCostCalculator = null,
32-
StringDiffCalculatorInterface $itemDiffCalculator = null
31+
?OperationCostCalculator $operationCostCalculator = null,
32+
?StringDiffCalculatorInterface $itemDiffCalculator = null
3333
)
3434
{
3535
$this->separatorRegex = $separatorRegex;

0 commit comments

Comments
 (0)