We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96700fe commit 1f32cd0Copy full SHA for 1f32cd0
src/Exceptions/DocumentParseError.php
@@ -17,7 +17,7 @@ public static function unknownFormat(string $format): self
17
));
18
}
19
20
- public static function invalidContent(string $file, string $errorMessage = null): self
+ public static function invalidContent(string $file, ?string $errorMessage = null): self
21
{
22
$message = sprintf(
23
'File "%s" don\'t seam to contain a valid json/yaml document',
src/Exceptions/Path.php
@@ -4,7 +4,7 @@
4
5
final class Path extends \RuntimeException
6
7
- public static function notFound(string $path = null): self
+ public static function notFound(?string $path = null): self
8
9
return new self('Json path to value not found. ' . $path);
10
0 commit comments