mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +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]);