-
-
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.
TASK: Add testclass with union type annotations to prove that reflect…
…ion handles union type annotations different
- Loading branch information
Showing
2 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
Neos.Flow/Tests/Functional/Reflection/Fixtures/DummyClassWithUnionTypeAnnotations.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,51 @@ | ||
<?php | ||
namespace Neos\Flow\Tests\Functional\Reflection\Fixtures; | ||
|
||
/* | ||
* 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. | ||
*/ | ||
|
||
/** | ||
* Dummy class for the Reflection tests | ||
* | ||
*/ | ||
class DummyClassWithUnionTypeAnnotations | ||
{ | ||
/** | ||
* @param string|false $parameterA | ||
* @param false|DummyClassWithUnionTypeAnnotations $parameterB | ||
* @param false | DummyClassWithUnionTypeAnnotations $parameterB1 Same as B but with spaces in between | ||
* @param DummyClassWithUnionTypeAnnotations|null $parameterC | ||
* @return void | ||
*/ | ||
public function methodWithUnionParameters($parameterA, $parameterB, $parameterB1, $parameterC) | ||
{ | ||
} | ||
|
||
/** | ||
* @return string|false | ||
*/ | ||
public function methodWithUnionReturnTypeA() | ||
{ | ||
} | ||
|
||
/** | ||
* @return false|DummyClassWithUnionTypeAnnotations | ||
*/ | ||
public function methodWithUnionReturnTypesB() | ||
{ | ||
} | ||
|
||
/** | ||
* @return DummyClassWithUnionTypeAnnotations|null | ||
*/ | ||
public function methodWithUnionReturnTypesC() | ||
{ | ||
} | ||
} |
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