Skip to content

Commit

Permalink
Update docs/en/reference/dql-doctrine-query-language.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Claudio Zizza <[email protected]>
  • Loading branch information
eltharin and SenseException authored Aug 12, 2024
1 parent 40436c6 commit 976f340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/dql-doctrine-query-language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -567,15 +567,15 @@ You can also nest several DTO :
<?php
class CustomerDTO
{
public function __construct($name, $email, $address, $value = null)
public function __construct(string $name, string $email, AddressDTO $address, string|null $value = null)
{
// Bind values to the object properties.
}
}
class AddressDTO
{
public function __construct($street, $city, $zip)
public function __construct(string $street, string $city, string $zip)
{
// Bind values to the object properties.
}
Expand Down

0 comments on commit 976f340

Please sign in to comment.