Skip to content

Commit

Permalink
Fix PHP 8.4 deprecation: Implicitly marking parameter as nullable is …
Browse files Browse the repository at this point in the history
…deprecated, the explicit nullable type must be used instead
  • Loading branch information
nishant04412 committed Oct 24, 2024
1 parent 603f8d5 commit 17ce1db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/book/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ $parameterGenerator->setType('*'); // invalid (throws exception)
$parameterGenerator->setType('\\'); // invalid (throws exception)
```


## Generated type-hints are now prefixed by `"\"`

Generated type-hints are now prefixed with the `NAMESPACE_SEPARATOR`,
Expand Down
2 changes: 1 addition & 1 deletion test/Generator/TestAsset/ParameterClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function defaultConstant($con = self::FOO)

}

public function defaultObjectEqualsNullAndNotOptional(\stdClass $a = null, $b)
public function defaultObjectEqualsNullAndNotOptional(?\stdClass $a, $b)
{

}
Expand Down

0 comments on commit 17ce1db

Please sign in to comment.