Skip to content

Commit 4ed7983

Browse files
committed
Merge branch 'feature/deprecated-functions-remove-redundant-code' of https://github.com/jrfnl/PHP_CodeSniffer
2 parents dabf301 + b0ea915 commit 4ed7983

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public function __construct()
3535

3636
foreach ($functions['internal'] as $functionName) {
3737
$function = new \ReflectionFunction($functionName);
38-
if (method_exists($function, 'isDeprecated') === false) {
39-
break;
40-
}
4138

4239
if ($function->isDeprecated() === true) {
4340
$this->forbiddenFunctions[$functionName] = null;

0 commit comments

Comments
 (0)