CoreFiles by mySites.guru
BinaryMatch.php18 lines, 370 bytes, from Joomla_5.4.10-Stable-Full_Package.zip
Raw History Compare with 5.4.9
md5
addec05362db2067a24e7179306d6210
sha1
aabf395db264a0ce129b13d556e33e67ad6635f3
sha256
6054959f31233ae2d7ba6e3e1dd2f959c891147197323d3f6f61280da2c74ba7
<?php

declare(strict_types=1);

namespace SpomkyLabs\Pki\X501\MatchingRule;

/**
 * Implements binary matching rule.
 *
 * Generally used only by UnknownAttribute and custom attributes.
 */
final class BinaryMatch extends MatchingRule
{
    public function compare(string $assertion, string $value): ?bool
    {
        return strcmp($assertion, $value) === 0;
    }
}

The same content is in 126 releases, Joomla 5.0.0-alpha1 to 6.1.0-alpha1. See them all, or every version of this file.