Back to Psalm

RedundantFunctionCall

docs/running_psalm/issues/RedundantFunctionCall.md

6.16.1237 B
Original Source

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]);