Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 155 Bytes

RedundantCast.md

File metadata and controls

10 lines (8 loc) · 155 Bytes

RedundantCast

Emitted when a cast (string, int, float etc.) is redundant

<?php
function foo(string $s) : string {
    return (string) $s;
}