for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FlexFqcnFinder\Filter\Specifications;
use FlexFqcnFinder\Filter\FqcnSpecification;
use FlexFqcnFinder\Filter\ReflectionSpecificationTrait;
use ReflectionClass;
class IsUserDefined implements FqcnSpecification
{
use ReflectionSpecificationTrait;
protected function isSatisfiedByReflection(string $fqcn, ReflectionClass $reflectionClass): bool
$fqcn
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function isSatisfiedByReflection(/** @scrutinizer ignore-unused */ string $fqcn, ReflectionClass $reflectionClass): bool
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return $reflectionClass->isUserDefined();
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.