src/Version/Helper/Safari.php
/**
     * maps different Safari Versions to a normalized format
     *
     * @throws UnexpectedValueException
     */
maps different Safari Versions to a normalized format
@throws UnexpectedValueException
maps different Safari Versions to a normalized format @throws UnexpectedValueException
public function mapSafariVersion(VersionInterface $detectedVersion): ?string
    {
        if (in_array($detectedVersion->getVersion(VersionInterface::IGNORE_MICRO), self::REGULAR_VERSIONS, true)) {
            return $detectedVersion->getVersion();
        }
        foreach (self::MAP_VERSIONS as $engineVersion => $osVersion) {
            if (version_compare((string) $detectedVersion->getVersion(VersionInterface::IGNORE_MICRO), (string) $engineVersion, '>=')) {
                return $osVersion;
            }
        }
        return null;
    }
public function mapSafariVersion ( VersionInterface $ detectedVersion ) : ? string { if ( in_array ( $ detectedVersion -> getVersion ( VersionInterface :: IGNORE_MICRO ) , self :: REGULAR_VERSIONS , true ) ) { return $ detectedVersion -> getVersion ( ) ; } foreach ( self :: MAP_VERSIONS as $ engineVersion => $ osVersion ) { if ( version_compare ( ( string ) $ detectedVersion -> getVersion ( VersionInterface :: IGNORE_MICRO ) , ( string ) $ engineVersion , '>=' ) ) { return $ osVersion ; } } return null ; }
maps different Safari Versions to a normalized format
 @throws UnexpectedValueException
maps different Safari Versions to a normalized format @throws UnexpectedValueException