for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bdf\Form\Constraint;
use Bdf\Form\Util\FieldPath;
use Symfony\Component\Validator\Constraint;
/**
* Add field option on comparison class
* The class must extends a subclass of AbstractComparison
*/
trait FieldComparisonTrait
{
* The field path
*
* @var string|FieldPath
public $field;
* FieldComparisonTrait constructor.
* @param string|FieldPath|array $field
public function __construct($field)
Constraint::__construct($field);
Symfony\Component\Valida...nstraint::__construct()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
Constraint::/** @scrutinizer ignore-call */
__construct($field);
}
* {@inheritdoc}
public function getDefaultOption(): ?string
return 'field';