Skip to content

Commit be7b28d

Browse files
committed
syntax in single definition
1 parent f2e9593 commit be7b28d

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

README.md

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -277,50 +277,24 @@ services:
277277
tags: [phpstan.rules.rule]
278278
arguments:
279279
forbiddenFunctions:
280-
- eval
281-
```
282-
283-
284-
285-
```php
286-
echo eval('...');
287-
```
288-
289-
:x:
290-
291-
<br>
292-
293-
```php
294-
echo '...';
295-
```
296-
297-
:+1:
280+
- dump
298281

299-
<br>
300-
301-
```yaml
302-
services:
303-
-
304-
class: Symplify\PHPStanRules\Rules\ForbiddenFuncCallRule
305-
tags: [phpstan.rules.rule]
306-
arguments:
307-
forbiddenFunctions:
282+
# or with custom error message
308283
dump: 'seems you missed some debugging function'
309284
```
310285
311286
312287
313288
```php
314-
dump($value);
315-
echo $value;
289+
dump('...');
316290
```
317291

318292
:x:
319293

320294
<br>
321295

322296
```php
323-
echo $value;
297+
echo '...';
324298
```
325299

326300
:+1:

0 commit comments

Comments
 (0)