Skip to content
Snippets Groups Projects
Unverified Commit 98ff311c authored by Sebastian Bergmann's avatar Sebastian Bergmann
Browse files

Do not use implicitly nullable parameters and prepare release

parent 19c13267
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,12 @@
All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
## [3.0.6] - 2023-03-02
### Changed
* Do not use implicitly nullable parameters
## [3.0.5] - 2023-03-01
* No code changes, only updated `.gitattributes` to not export non-essential files.
......@@ -63,6 +69,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
* This component is no longer supported on PHP 5.6
[3.0.6]: https://github.com/sebastianbergmann/diff/compare/3.0.5...3.0.6
[3.0.5]: https://github.com/sebastianbergmann/diff/compare/3.0.4...3.0.5
[3.0.4]: https://github.com/sebastianbergmann/diff/compare/3.0.3...3.0.4
[3.0.3]: https://github.com/sebastianbergmann/diff/compare/3.0.2...3.0.3
......
......@@ -64,7 +64,7 @@ final class Differ
*
* @return string
*/
public function diff($from, $to, LongestCommonSubsequenceCalculator $lcs = null): string
public function diff($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): string
{
$diff = $this->diffToArray(
$this->normalizeDiffInput($from),
......@@ -92,7 +92,7 @@ final class Differ
*
* @return array
*/
public function diffToArray($from, $to, LongestCommonSubsequenceCalculator $lcs = null): array
public function diffToArray($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): array
{
if (\is_string($from)) {
$from = $this->splitStringByLines($from);
......
......@@ -24,7 +24,7 @@ final class ConfigurationException extends InvalidArgumentException
string $expected,
$value,
int $code = 0,
\Exception $previous = null
?\Exception $previous = null
) {
parent::__construct(
\sprintf(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment