Skip to content

Commit ba01945

Browse files
Do not use implicitly nullable parameters and prepare release
1 parent 74be170 commit ba01945

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

ChangeLog.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [4.0.6] - 2024-03-02
6+
7+
### Changed
8+
9+
* Do not use implicitly nullable parameters
10+
511
## [4.0.5] - 2023-05-07
612

713
### Changed
@@ -83,6 +89,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
8389

8490
* This component is no longer supported on PHP 5.6
8591

92+
[4.0.6]: https://github.com/sebastianbergmann/diff/compare/4.0.5...4.0.6
8693
[4.0.5]: https://github.com/sebastianbergmann/diff/compare/4.0.4...4.0.5
8794
[4.0.4]: https://github.com/sebastianbergmann/diff/compare/4.0.3...4.0.4
8895
[4.0.3]: https://github.com/sebastianbergmann/diff/compare/4.0.2...4.0.3

src/Differ.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct($outputBuilder = null)
8282
* @param array|string $from
8383
* @param array|string $to
8484
*/
85-
public function diff($from, $to, LongestCommonSubsequenceCalculator $lcs = null): string
85+
public function diff($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): string
8686
{
8787
$diff = $this->diffToArray(
8888
$this->normalizeDiffInput($from),
@@ -108,7 +108,7 @@ public function diff($from, $to, LongestCommonSubsequenceCalculator $lcs = null)
108108
* @param array|string $to
109109
* @param LongestCommonSubsequenceCalculator $lcs
110110
*/
111-
public function diffToArray($from, $to, LongestCommonSubsequenceCalculator $lcs = null): array
111+
public function diffToArray($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): array
112112
{
113113
if (is_string($from)) {
114114
$from = $this->splitStringByLines($from);

src/Exception/ConfigurationException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(
2222
string $expected,
2323
$value,
2424
int $code = 0,
25-
Exception $previous = null
25+
?Exception $previous = null
2626
) {
2727
parent::__construct(
2828
sprintf(

0 commit comments

Comments
 (0)