Skip to content

Commit

Permalink
Fix nullable type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Tubach committed Mar 21, 2024
1 parent 1b66990 commit 90b8645
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Expression/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class Calculation

private function __construct(
string $expression,
ExpressionVariablesContainer $variablesContainer = null,
?ExpressionVariablesContainer $variablesContainer = null,
?Variable $fallback = null
) {
$this->expression = $expression;
Expand Down
2 changes: 1 addition & 1 deletion src/Expression/Evaluation.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class Evaluation

private function __construct(
string $expression,
ExpressionVariablesContainer $variablesContainer = null
?ExpressionVariablesContainer $variablesContainer = null
) {
$this->expression = $expression;
$this->variablesContainer = $variablesContainer ?? ExpressionVariablesContainer::createEmpty();
Expand Down
2 changes: 1 addition & 1 deletion src/Expression/SymfonyExpressionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class SymfonyExpressionHandler implements CalculatorInterface, EvaluatorIn
{
private ExpressionLanguage $expressionLanguage;

public function __construct(ExpressionLanguage $expressionLanguage = null)
public function __construct(?ExpressionLanguage $expressionLanguage = null)
{
$this->expressionLanguage = $expressionLanguage ?? new ExpressionLanguage();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Parsers/EnsurePropertyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function assertPropertyExists(
\stdClass $data,
string $property,
SchemaInfo $info,
string $keyword = null
?string $keyword = null
): void {
if (!property_exists($data, $property)) {
throw $this->keywordException(
Expand Down

0 comments on commit 90b8645

Please sign in to comment.