Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 227 Bytes

RedundantCastGivenDocblockType.md

File metadata and controls

13 lines (11 loc) · 227 Bytes

RedundantCastGivenDocblockType

Emitted when a cast (string, int, float etc.) is redundant given the docblock-provided type

<?php
/**
 * @param  string $s
 */
function foo($s) : string {
    return (string) $s;
}