Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored and github-actions[bot] committed Mar 14, 2024
1 parent 51177fe commit 019584c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/DateScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function parseValue($value): \DateTimeInterface
return $this->tryParsingDate($value, Error::class);
}

public function parseLiteral($valueNode, array $variables = null): \DateTimeInterface
public function parseLiteral($valueNode, ?array $variables = null): \DateTimeInterface
{
if (! $valueNode instanceof StringValueNode) {
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion src/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function parseValue($value)
return $this->decodeJSON($value);
}

public function parseLiteral($valueNode, array $variables = null)
public function parseLiteral($valueNode, ?array $variables = null)
{
if (! property_exists($valueNode, 'value')) {
$withoutValue = Printer::doPrint($valueNode);
Expand Down
2 changes: 1 addition & 1 deletion src/MixedScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function parseValue($value)
return $value;
}

public function parseLiteral($valueNode, array $variables = null)
public function parseLiteral($valueNode, ?array $variables = null)
{
return AST::valueFromASTUntyped($valueNode);
}
Expand Down
2 changes: 1 addition & 1 deletion src/NullScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function parseValue($value)
return null;
}

public function parseLiteral($valueNode, array $variables = null)
public function parseLiteral($valueNode, ?array $variables = null)
{
if (! $valueNode instanceof NullValueNode) {
throw new Error(self::ONLY_NULL_IS_ALLOWED);
Expand Down
2 changes: 1 addition & 1 deletion src/Regex.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function parseValue($value): string
return $stringValue;
}

public function parseLiteral($valueNode, array $variables = null): string
public function parseLiteral($valueNode, ?array $variables = null): string
{
$value = Utils::extractStringFromLiteral($valueNode);

Expand Down
2 changes: 1 addition & 1 deletion src/StringScalar.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function parseValue($value): string
return $stringValue;
}

public function parseLiteral($valueNode, array $variables = null): string
public function parseLiteral($valueNode, ?array $variables = null): string
{
$stringValue = Utils::extractStringFromLiteral($valueNode);

Expand Down

0 comments on commit 019584c

Please sign in to comment.