CoreFiles by mySites.guru
NotIdenticalToValidator.php31 lines, 749 bytes, from Joomla_5.2.0-Stable-Full_Package.zip
Raw History Compare with 5.1.4
md5
0cd9177254b90d7b4f55616695cf0c16
sha1
e8372eb2e82b5f3c0aed522e2cda93971c79d649
sha256
3536a00bb8742af6329d7d6f5a8bcb586ec4a73481299dc8baed937500fbec4a
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Validator\Constraints;

/**
 * Validates values aren't identical (!==).
 *
 * @author Daniel Holmes <[email protected]>
 * @author Bernhard Schussek <[email protected]>
 */
class NotIdenticalToValidator extends AbstractComparisonValidator
{
    protected function compareValues(mixed $value1, mixed $value2): bool
    {
        return $value1 !== $value2;
    }

    protected function getErrorCode(): ?string
    {
        return NotIdenticalTo::IS_IDENTICAL_ERROR;
    }
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.