Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
/**
* @internal
*
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
* @author Alexander M. Turek <me@derrabus.de>
*/
trait ZeroComparisonConstraintTrait
{
public function __construct(?array $options = null, ?string $message = null, ?array $groups = null, mixed $payload = null)
{
$options ??= [];
if (isset($options['propertyPath'])) {
throw new ConstraintDefinitionException(\sprintf('The "propertyPath" option of the "%s" constraint cannot be set.', static::class));
}
if (isset($options['value'])) {
throw new ConstraintDefinitionException(\sprintf('The "value" option of the "%s" constraint cannot be set.', static::class));
}
parent::__construct(0, null, $message, $groups, $payload, $options);
}
public function validatedBy(): string
{
return parent::class.'Validator';
}
}