mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 18:17:55 +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]);