From be7b28d1ab4214dec84628693a2a5553ee34b7b5 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 18 Dec 2024 17:06:51 +0100 Subject: [PATCH] syntax in single definition --- README.md | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 769ffb67..49e57996 100644 --- a/README.md +++ b/README.md @@ -277,42 +277,16 @@ services: tags: [phpstan.rules.rule] arguments: forbiddenFunctions: - - eval -``` - -↓ - -```php -echo eval('...'); -``` - -:x: - -
- -```php -echo '...'; -``` - -:+1: + - dump -
- -```yaml -services: - - - class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule - tags: [phpstan.rules.rule] - arguments: - forbiddenFunctions: + # or with custom error message dump: 'seems you missed some debugging function' ``` ↓ ```php -dump($value); -echo $value; +dump('...'); ``` :x: @@ -320,7 +294,7 @@ echo $value;
```php -echo $value; +echo '...'; ``` :+1: