mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
238 B
238 B
RedundantFunctionCall
Emitted when a function call (array_values
, strtolower
, ksort
etc.) is redundant.
<?php
$a = ['already', 'a', 'list'];
$redundant = array_values($a);
$alreadyLower = strtolower($redundant[0]);