forked from Level-2/Dice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support scalar union types * refactor tests to not include php8 syntax on php 7 Co-authored-by: thisispiers <[email protected]>
- Loading branch information
1 parent
9b54e76
commit d6f16f4
Showing
6 changed files
with
71 additions
and
10 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
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,11 @@ | ||
<?php | ||
|
||
class UnionScalar | ||
{ | ||
public $a; | ||
|
||
public function __construct(int|string $a) | ||
{ | ||
$this->a = $a; | ||
} | ||
} |
@cseufert after i made composer update and get latest v4.1.5 on my PC, then i get error:
Argument 2 passed to Dummy::__construct() must be of the type array, string given
my config
one line from trace
#0 [internal function]: Dummy->__construct('bar', 'foo', Array, '')
maybe u can fix this?
thx in advance