for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Smoren\Validator\Rules;
use Smoren\Validator\Interfaces\MixedRuleInterface;
use Smoren\Validator\Interfaces\ValidationResultInterface;
use Smoren\Validator\Structs\ValidationSuccessResult;
abstract class BaseRule implements MixedRuleInterface
{
/**
* @param mixed $value
* @return ValidationResultInterface
*/
protected function execute($value): ValidationResultInterface
$value
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function execute(/** @scrutinizer ignore-unused */ $value): ValidationResultInterface
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new ValidationSuccessResult(false);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.