Skip to content

Commit 1f32cd0

Browse files
runar-stefnasunkan
authored andcommitted
Fix php 8.4 deprecation warnings
1 parent 96700fe commit 1f32cd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exceptions/DocumentParseError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function unknownFormat(string $format): self
1717
));
1818
}
1919

20-
public static function invalidContent(string $file, string $errorMessage = null): self
20+
public static function invalidContent(string $file, ?string $errorMessage = null): self
2121
{
2222
$message = sprintf(
2323
'File "%s" don\'t seam to contain a valid json/yaml document',

src/Exceptions/Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
final class Path extends \RuntimeException
66
{
7-
public static function notFound(string $path = null): self
7+
public static function notFound(?string $path = null): self
88
{
99
return new self('Json path to value not found. ' . $path);
1010
}

0 commit comments

Comments
 (0)