-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added typed functions to array-dot library (#1130)
* Added typed functions to array-dot library * Added array_dot_get_enum function * CS Fixes
- Loading branch information
1 parent
ae000a8
commit 964409b
Showing
4 changed files
with
229 additions
and
1 deletion.
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
13 changes: 13 additions & 0 deletions
13
src/lib/array-dot/tests/Flow/ArrayDot/Tests/Unit/Fixtures/Letters.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 | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Flow\ArrayDot\Tests\Unit\Fixtures; | ||
|
||
enum Letters : string | ||
{ | ||
case A = 'A'; | ||
case B = 'B'; | ||
case C = 'C'; | ||
case D = 'D'; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/lib/array-dot/tests/Flow/ArrayDot/Tests/Unit/Fixtures/Numbers.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 | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Flow\ArrayDot\Tests\Unit\Fixtures; | ||
|
||
enum Numbers : int | ||
{ | ||
case ONE = 1; | ||
case THREE = 3; | ||
case TWO = 2; | ||
case ZERO = 0; | ||
} |