Skip to content

Commit

Permalink
syntax in single definition
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 18, 2024
1 parent f2e9593 commit be7b28d
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,50 +277,24 @@ services:
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions:
- eval
```
```php
echo eval('...');
```

:x:

<br>

```php
echo '...';
```

:+1:
- dump

<br>

```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:

<br>

```php
echo $value;
echo '...';
```

:+1:
Expand Down

0 comments on commit be7b28d

Please sign in to comment.