-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
Traversable
or ArrayAccess
is now handled & returns…
… empty.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of rekalogika/mapper package. | ||
* | ||
* (c) Priyadi Iman Nurcahyo <https://rekalogika.dev> | ||
* | ||
* For the full copyright and license information, please view the LICENSE file | ||
* that was distributed with this source code. | ||
*/ | ||
|
||
namespace Rekalogika\Mapper\Tests\Fixtures\ArrayLike; | ||
|
||
use Doctrine\Common\Collections\Collection; | ||
use Rekalogika\Mapper\Tests\Fixtures\Scalar\ObjectWithScalarProperties; | ||
|
||
class ObjectWithNullCollectionProperty | ||
{ | ||
/** | ||
* @var null|Collection<int,ObjectWithScalarProperties> | ||
*/ | ||
public ?Collection $property = null; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of rekalogika/mapper package. | ||
* | ||
* (c) Priyadi Iman Nurcahyo <https://rekalogika.dev> | ||
* | ||
* For the full copyright and license information, please view the LICENSE file | ||
* that was distributed with this source code. | ||
*/ | ||
|
||
namespace Rekalogika\Mapper\Tests\Fixtures\ArrayLikeDto; | ||
|
||
use Rekalogika\Mapper\Tests\Fixtures\ScalarDto\ObjectWithScalarPropertiesDto; | ||
|
||
class ObjectWithNotNullArrayAccessPropertyDto | ||
{ | ||
/** | ||
* @var \ArrayAccess<int,ObjectWithScalarPropertiesDto> | ||
*/ | ||
public \ArrayAccess $property; | ||
Check failure on line 23 in tests/Fixtures/ArrayLikeDto/ObjectWithNotNullArrayAccessPropertyDto.php
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of rekalogika/mapper package. | ||
* | ||
* (c) Priyadi Iman Nurcahyo <https://rekalogika.dev> | ||
* | ||
* For the full copyright and license information, please view the LICENSE file | ||
* that was distributed with this source code. | ||
*/ | ||
|
||
namespace Rekalogika\Mapper\Tests\Fixtures\ArrayLikeDto; | ||
|
||
use Rekalogika\Mapper\Tests\Fixtures\ScalarDto\ObjectWithScalarPropertiesDto; | ||
|
||
class ObjectWithNotNullTraversablePropertyDto | ||
{ | ||
/** | ||
* @var \Traversable<int,ObjectWithScalarPropertiesDto> | ||
*/ | ||
public \Traversable $property; | ||
Check failure on line 23 in tests/Fixtures/ArrayLikeDto/ObjectWithNotNullTraversablePropertyDto.php
|
||
} |