Skip to content

Commit bf4f2c7

Browse files
fix README.md (#469)
* fix README.md with string 'AsController' does not work * Update README example to use fully qualified class name Replaced the short class name with its fully qualified counterpart in the README code example for clarity. This ensures accurate context and prevents potential namespace resolution issues.
1 parent ed2e861 commit bf4f2c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ You can add multiple parameters, the violation will happen when none of them mat
195195
```php
196196
$rules[] = Rule::allClasses()
197197
->that(new ResideInOneOfTheseNamespaces('App\Controller'))
198-
->should(new HaveAttribute('AsController'))
198+
->should(new HaveAttribute('Symfony\Component\HttpKernel\Attribute\AsController'))
199199
->because('it configures the service container');
200200
```
201201

0 commit comments

Comments
 (0)