Skip to content

Commit

Permalink
Changed scalar value type-hints to scalar|null
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł Niedzielski <pawel.niedzielski@ibexa.co>
  • Loading branch information
alongosz and Steveb-p committed Jun 27, 2023
1 parent 6cb1ff5 commit 1090a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contracts/Output/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ public function valueElement(string $name, $value): void
}

/**
* @phpstan-param scalar $value
* @phpstan-param array<string, scalar> $attributes
* @phpstan-param scalar|null $value
* @phpstan-param array<string, scalar|null> $attributes
*/
abstract public function startValueElement(string $name, $value, array $attributes = []): void;

Expand Down

0 comments on commit 1090a5c

Please sign in to comment.