-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php80] Handle value as argument with keep description as comment on …
…AttributeValueResolver (#6589) * [Php80] Handle behat @when with values as argument and description as comment * debugging * handle comment as value * [Php80] Handle value as argument with keep description as comment on AttributeValueResolver * new lines * new lines * deetail
- Loading branch information
1 parent
171afe1
commit 832e458
Showing
2 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...Class_/AnnotationToAttributeRector/Fixture/with_value_as_argument_and_description.php.inc
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,44 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\Fixture; | ||
|
||
final class WithValueAsArgumentAndDescription | ||
{ | ||
/** | ||
* original comment | ||
* some other new lines | ||
* | ||
* @When(key="value") some description | ||
* | ||
* other comment | ||
* other new line comment | ||
*/ | ||
public function someStep(): void | ||
{ | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\AnnotationToAttributeRector\Fixture; | ||
|
||
final class WithValueAsArgumentAndDescription | ||
{ | ||
/** | ||
* original comment | ||
* some other new lines | ||
* | ||
* some description | ||
* | ||
* other comment | ||
* other new line comment | ||
*/ | ||
#[\Behat\Step\When('(key="value")')] | ||
public function someStep(): void | ||
{ | ||
} | ||
} | ||
|
||
?> |
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