1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 21:19:03 +01:00
psalm/docs/running_psalm/issues/RedundantFunctionCall.md

13 lines
238 B
Markdown
Raw Normal View History

2021-12-30 11:56:02 +01:00
# RedundantFunctionCall
Emitted when a function call (`array_values`, `strtolower`, `ksort` etc.) is redundant.
```php
<?php
$a = ['already', 'a', 'list'];
$redundant = array_values($a);
$alreadyLower = strtolower($redundant[0]);
```