-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
96 additions
and
2 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
12 changes: 12 additions & 0 deletions
12
tests/monomorphic/230-builtin-types/input/Command/Usage.php
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 Test\Command; | ||
|
||
use Test\Generic\Box; | ||
use Test\Entity\Bird; | ||
use Test\Entity\Cat; | ||
|
||
class Usage extends Box<array,callable,bool,int,float,string,iterable,void,object,null,false,mixed,never,true,Bird,Cat> | ||
{ | ||
|
||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace Test\Entity; | ||
|
||
class Bird | ||
{ | ||
|
||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace Test\Entity; | ||
|
||
class Cat | ||
{ | ||
|
||
} |
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,13 @@ | ||
<?php | ||
|
||
namespace Test\Generic; | ||
|
||
use Test\Entity\Bird; | ||
use Test\Entity\Cat; | ||
|
||
class Box<A,B,C,D,E,F,G,H,I,G,K,L,M,N,O,P> { | ||
|
||
public function test($obj): void { | ||
var_dump(Container<A,B,C,D,E,F,G,H,I,G,K,L,M,N,O,P>::class); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/monomorphic/230-builtin-types/input/Generic/Container.php
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 Test\Generic; | ||
|
||
class Container<A,B,C,D,E,F,G,H,I,G,K,L,M,N,O,P> { | ||
|
||
private readonly A|B|C|D|E|F|G|H|I|G|K|L|M|N|O|P $content = null; | ||
|
||
public function setContent(A|B|C|D|E|F|G|H|I|G|K|L|M|N|O|P $content): A|B|C|D|E|F|G|H|I|G|K|L|M|N|O|P { | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/monomorphic/230-builtin-types/output/Command/Usage.php
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 Test\Command; | ||
|
||
use Test\Generic\Box; | ||
use Test\Entity\Bird; | ||
use Test\Entity\Cat; | ||
class Usage extends \Test\Generic\BoxForArrayAndCallableAndBoolAndIntAndFloatAndStringAndNullAndVoidAndObjectAndFalseAndMixedAndNeverAndTrueAndTestEntityBirdAndTestEntityCat | ||
{ | ||
} |
13 changes: 13 additions & 0 deletions
13
...dNullAndVoidAndObjectAndFalseAndMixedAndNeverAndTrueAndTestEntityBirdAndTestEntityCat.php
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,13 @@ | ||
<?php | ||
|
||
namespace Test\Generic; | ||
|
||
use Test\Entity\Bird; | ||
use Test\Entity\Cat; | ||
class BoxForArrayAndCallableAndBoolAndIntAndFloatAndStringAndNullAndVoidAndObjectAndFalseAndMixedAndNeverAndTrueAndTestEntityBirdAndTestEntityCat | ||
{ | ||
public function test($obj): void | ||
{ | ||
var_dump(\Test\Generic\ContainerForArrayAndCallableAndBoolAndIntAndFloatAndStringAndNullAndVoidAndObjectAndFalseAndMixedAndNeverAndTrueAndTestEntityBirdAndTestEntityCat::class); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...dNullAndVoidAndObjectAndFalseAndMixedAndNeverAndTrueAndTestEntityBirdAndTestEntityCat.php
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,11 @@ | ||
<?php | ||
|
||
namespace Test\Generic; | ||
|
||
class ContainerForArrayAndCallableAndBoolAndIntAndFloatAndStringAndNullAndVoidAndObjectAndFalseAndMixedAndNeverAndTrueAndTestEntityBirdAndTestEntityCat | ||
{ | ||
private readonly array|callable|bool|int|float|string|null|void|object|null|false|mixed|never|true|\Test\Entity\Bird|\Test\Entity\Cat $content = null; | ||
public function setContent(array|callable|bool|int|float|string|null|void|object|null|false|mixed|never|true|\Test\Entity\Bird|\Test\Entity\Cat $content): array|callable|bool|int|float|string|null|void|object|null|false|mixed|never|true|\Test\Entity\Bird|\Test\Entity\Cat | ||
{ | ||
} | ||
} |