Skip to content

Commit

Permalink
Update typesystem.md
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax authored Mar 25, 2024
1 parent 886711d commit 7e14928
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/typesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ namespace App\Dto;
final class ReviewInputDto
{
public int $stars;
public string $commentary;
public string $email;
public ?string $commentary;
public ?string $email;
}

```
Expand Down Expand Up @@ -507,7 +507,7 @@ final class Query extends Type
'search',
$this->searchResult->notNullList(),
function (null $parent) : array {
// the return type for a list do not have to an array, any iterable is accepted
// the return type for a list do not have to be an array, any iterable is accepted
return [
new DroidDto(),
new StarshipDto(),
Expand Down

0 comments on commit 7e14928

Please sign in to comment.