Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 379 Bytes

RedundantConditionGivenDocblockType.md

File metadata and controls

18 lines (14 loc) · 379 Bytes

RedundantConditionGivenDocblockType

Emitted when conditional is redundant given information supplied in one or more docblocks.

This may be desired (e.g. when checking user input) so is distinct from RedundantCondition, which only applies to non-docblock types.

<?php

/**
 * @param string $s
 *
 * @return void
 */
function foo($s) {
    if (is_string($s)) {};
}