This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast properties with
self
or parent
type
- Loading branch information
Sébastien Nikolaou
committed
Sep 6, 2021
1 parent
34289b1
commit 433a0fd
Showing
4 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Spatie\DataTransferObject\Tests\Dummy; | ||
|
||
class ComplexDtoWithParent extends ComplexDtoWithSelf | ||
{ | ||
public string $name; | ||
|
||
public ?parent $other; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Spatie\DataTransferObject\Tests\Dummy; | ||
|
||
use Spatie\DataTransferObject\DataTransferObject; | ||
|
||
class ComplexDtoWithSelf extends DataTransferObject | ||
{ | ||
public string $name; | ||
|
||
public ?self $other; | ||
} |