Skip to content

Commit

Permalink
add nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jan 29, 2025
1 parent 40d639e commit 81041c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SchemaTraverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct(bool $assertConstraints = true, bool $ignoreUnknown
*
* @throws TraverserException
*/
public function traverse(mixed $data, SchemaInterface $schema, VisitorInterface $visitor = null): mixed
public function traverse(mixed $data, SchemaInterface $schema, ?VisitorInterface $visitor = null): mixed
{
$this->pathStack = [];

Expand Down

0 comments on commit 81041c2

Please sign in to comment.