Skip to content

Commit

Permalink
Explicitly mark parameter $forceArray as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Aug 16, 2024
1 parent 1f0d368 commit 24ba82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function decode(string $json, ?bool $forceArray = null): mixed
*
* @throws UnexpectedValueException
*/
public static function decodeFile(string $path, bool $forceArray = null): mixed
public static function decodeFile(string $path, ?bool $forceArray = null): mixed
{
if (!is_readable($path)) {
throw new UnexpectedValueException("The file at '$path' is not readable");
Expand Down

0 comments on commit 24ba82f

Please sign in to comment.