1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/docs/running_psalm/issues/RedundantFunctionCall.md
2021-12-30 11:56:16 +01:00

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