-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3328 from robertlemke/feature/3026-php-dnf-types
FEATURE: Introduce PHP 8.2 DNF type support
- Loading branch information
Showing
6 changed files
with
205 additions
and
101 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
32 changes: 32 additions & 0 deletions
32
...ow/Tests/Functional/Reflection/Fixtures/PHP8/DummyClassWithDisjunctiveNormalFormTypes.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,32 @@ | ||
<?php | ||
namespace Neos\Flow\Tests\Functional\Reflection\Fixtures\PHP8; | ||
|
||
/* | ||
* This file is part of the Neos.Flow package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
use Neos\Flow\Tests\Functional\Reflection\Fixtures\DummyClassWithProperties; | ||
use Neos\Flow\Tests\Functional\Reflection\Fixtures\DummyClassWithTypeHints; | ||
use Neos\Flow\Tests\Functional\Reflection\Fixtures\DummyReadonlyClass; | ||
|
||
/** | ||
* A class with PHP 8.2 disjunctive normal form types | ||
* | ||
* @see https://wiki.php.net/rfc/dnf_types | ||
*/ | ||
class DummyClassWithDisjunctiveNormalFormTypes | ||
{ | ||
public function dnfTypesA(DummyReadonlyClass | (DummyClassWithTypeHints & DummyClassWithUnionTypeHints) | null $theParameter): void | ||
{ | ||
} | ||
|
||
public function dnfTypesB(DummyReadonlyClass | (DummyClassWithTypeHints & DummyClassWithUnionTypeHints) | (DummyClassWithTypeHints & DummyClassWithProperties) | null $theParameter): void | ||
{ | ||
} | ||
} |
Oops, something went wrong.