-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php80] Fix Non namespaced class with annotation on AnnotationToAttri…
…buteRector (#268) Co-authored-by: Stephan Vierkant <[email protected]>
- Loading branch information
1 parent
0c035c3
commit b7359ed
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...r/Class_/AnnotationToAttributeRector/Fixture/non_namespaced_class_with_annotation.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,19 @@ | ||
<?php | ||
|
||
/** | ||
* @ApiPlatform\Core\Annotation\ApiResource( | ||
* routePrefix="/demo/" | ||
* ) | ||
*/ | ||
final class NonNamespacedClassWithAnnotation | ||
{ | ||
} | ||
?> | ||
----- | ||
<?php | ||
|
||
#[\ApiPlatform\Core\Annotation\ApiResource(routePrefix: '/demo/')] | ||
final class NonNamespacedClassWithAnnotation | ||
{ | ||
} | ||
?> |
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