diff --git a/ChangeLog.md b/ChangeLog.md
index a6ccfad7173d69a56f84768164aae1c52cf131d3..e62d8f9577f36521042b4787d5df9ed40f3861f9 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -2,6 +2,12 @@
 
 All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
 
+## [4.0.6] - 2024-03-02
+
+### Changed
+
+* Do not use implicitly nullable parameters
+
 ## [4.0.5] - 2023-05-07
 
 ### Changed
@@ -83,6 +89,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
 
+[4.0.6]: https://github.com/sebastianbergmann/diff/compare/4.0.5...4.0.6
 [4.0.5]: https://github.com/sebastianbergmann/diff/compare/4.0.4...4.0.5
 [4.0.4]: https://github.com/sebastianbergmann/diff/compare/4.0.3...4.0.4
 [4.0.3]: https://github.com/sebastianbergmann/diff/compare/4.0.2...4.0.3
diff --git a/src/Differ.php b/src/Differ.php
index 5a4d9d10242ad565e170a81dc4575def7cbf0878..98c7a9b29a021352ed000f8b570888f106f757ab 100644
--- a/src/Differ.php
+++ b/src/Differ.php
@@ -82,7 +82,7 @@ final class Differ
      * @param array|string $from
      * @param array|string $to
      */
-    public function diff($from, $to, LongestCommonSubsequenceCalculator $lcs = null): string
+    public function diff($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): string
     {
         $diff = $this->diffToArray(
             $this->normalizeDiffInput($from),
@@ -108,7 +108,7 @@ final class Differ
      * @param array|string                       $to
      * @param LongestCommonSubsequenceCalculator $lcs
      */
-    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);
diff --git a/src/Exception/ConfigurationException.php b/src/Exception/ConfigurationException.php
index b767b2194a2742374c16cbf2189f2b5256d303a9..8847a2e586fb5320c07d38e1d0db5be5f00ec2d1 100644
--- a/src/Exception/ConfigurationException.php
+++ b/src/Exception/ConfigurationException.php
@@ -22,7 +22,7 @@ final class ConfigurationException extends InvalidArgumentException
         string $expected,
         $value,
         int $code = 0,
-        Exception $previous = null
+        ?Exception $previous = null
     ) {
         parent::__construct(
             sprintf(