mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +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]);