for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiapi\validators;
use yii\base\Exception;
class AttributeValidationException extends Exception
{
public function getName()
return 'Validation exception';
}
public static function forValue($value, $message)
$message
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new self('Value ' . json_encode($value) . ' is invalid');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.