Skip to content

Commit

Permalink
Do not use implicitly nullable parameters and prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 2, 2024
1 parent 19c1326 commit 98ff311
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Differ.php
Expand Up @@ -64,7 +64,7 @@ public function __construct($outputBuilder = null)
*
* @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),
Expand Down Expand Up @@ -92,7 +92,7 @@ public function diff($from, $to, LongestCommonSubsequenceCalculator $lcs = null)
*
* @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);
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ConfigurationException.php
Expand Up @@ -24,7 +24,7 @@ public function __construct(
string $expected,
$value,
int $code = 0,
\Exception $previous = null
?\Exception $previous = null
) {
parent::__construct(
\sprintf(
Expand Down

0 comments on commit 98ff311

Please sign in to comment.