Downgraded from 5.2.0 to 5.1.0 because bida server has php 7.3 and 5.1.0 is the last version supporting it

This commit is contained in:
pezcurrel 2022-12-02 04:36:21 +01:00
parent 10c321013f
commit 2e37b1dc6e
11 changed files with 39 additions and 39 deletions

View file

@ -1,5 +1,5 @@
{ {
"require": { "require": {
"patrickschur/language-detection": "^5.2" "patrickschur/language-detection": "5.1.0"
} }
} }

View file

@ -4,26 +4,26 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "5d150ffc0d80b479e848f9ab596fef44", "content-hash": "10553853f6dbffaebc62032c1fd378b6",
"packages": [ "packages": [
{ {
"name": "patrickschur/language-detection", "name": "patrickschur/language-detection",
"version": "v5.2.0", "version": "v5.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/patrickschur/language-detection.git", "url": "https://github.com/patrickschur/language-detection.git",
"reference": "4849c2e8618cce09dbe15d5b534b51137bd6d477" "reference": "728f1434dcf126ce3ed7118567c014d80d7fdd9c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/patrickschur/language-detection/zipball/4849c2e8618cce09dbe15d5b534b51137bd6d477", "url": "https://api.github.com/repos/patrickschur/language-detection/zipball/728f1434dcf126ce3ed7118567c014d80d7fdd9c",
"reference": "4849c2e8618cce09dbe15d5b534b51137bd6d477", "reference": "728f1434dcf126ce3ed7118567c014d80d7fdd9c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"php": "^7.4 || ^8.0" "php": "^7.3 || ^8.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5.0" "phpunit/phpunit": "^9.5.0"
@ -53,9 +53,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/patrickschur/language-detection/issues", "issues": "https://github.com/patrickschur/language-detection/issues",
"source": "https://github.com/patrickschur/language-detection/tree/v5.2.0" "source": "https://github.com/patrickschur/language-detection/tree/v5.1.0"
}, },
"time": "2022-03-01T22:22:41+00:00" "time": "2021-03-05T22:18:57+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],

View file

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit5e826332e350ba6531220f8a53914518::getLoader(); return ComposerAutoloaderInit8bcf3acc12d2a7bdb51040a22ce133da::getLoader();

View file

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit5e826332e350ba6531220f8a53914518 class ComposerAutoloaderInit8bcf3acc12d2a7bdb51040a22ce133da
{ {
private static $loader; private static $loader;
@ -24,12 +24,12 @@ class ComposerAutoloaderInit5e826332e350ba6531220f8a53914518
require __DIR__ . '/platform_check.php'; require __DIR__ . '/platform_check.php';
spl_autoload_register(array('ComposerAutoloaderInit5e826332e350ba6531220f8a53914518', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit8bcf3acc12d2a7bdb51040a22ce133da', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit5e826332e350ba6531220f8a53914518', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit8bcf3acc12d2a7bdb51040a22ce133da', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php'; require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit5e826332e350ba6531220f8a53914518::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit8bcf3acc12d2a7bdb51040a22ce133da::getInitializer($loader));
$loader->register(true); $loader->register(true);

View file

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInit5e826332e350ba6531220f8a53914518 class ComposerStaticInit8bcf3acc12d2a7bdb51040a22ce133da
{ {
public static $prefixLengthsPsr4 = array ( public static $prefixLengthsPsr4 = array (
'L' => 'L' =>
@ -27,9 +27,9 @@ class ComposerStaticInit5e826332e350ba6531220f8a53914518
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit5e826332e350ba6531220f8a53914518::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit8bcf3acc12d2a7bdb51040a22ce133da::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit5e826332e350ba6531220f8a53914518::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit8bcf3acc12d2a7bdb51040a22ce133da::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit5e826332e350ba6531220f8a53914518::$classMap; $loader->classMap = ComposerStaticInit8bcf3acc12d2a7bdb51040a22ce133da::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }

View file

@ -2,28 +2,28 @@
"packages": [ "packages": [
{ {
"name": "patrickschur/language-detection", "name": "patrickschur/language-detection",
"version": "v5.2.0", "version": "v5.1.0",
"version_normalized": "5.2.0.0", "version_normalized": "5.1.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/patrickschur/language-detection.git", "url": "https://github.com/patrickschur/language-detection.git",
"reference": "4849c2e8618cce09dbe15d5b534b51137bd6d477" "reference": "728f1434dcf126ce3ed7118567c014d80d7fdd9c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/patrickschur/language-detection/zipball/4849c2e8618cce09dbe15d5b534b51137bd6d477", "url": "https://api.github.com/repos/patrickschur/language-detection/zipball/728f1434dcf126ce3ed7118567c014d80d7fdd9c",
"reference": "4849c2e8618cce09dbe15d5b534b51137bd6d477", "reference": "728f1434dcf126ce3ed7118567c014d80d7fdd9c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"php": "^7.4 || ^8.0" "php": "^7.3 || ^8.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.5.0" "phpunit/phpunit": "^9.5.0"
}, },
"time": "2022-03-01T22:22:41+00:00", "time": "2021-03-05T22:18:57+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {
@ -50,7 +50,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/patrickschur/language-detection/issues", "issues": "https://github.com/patrickschur/language-detection/issues",
"source": "https://github.com/patrickschur/language-detection/tree/v5.2.0" "source": "https://github.com/patrickschur/language-detection/tree/v5.1.0"
}, },
"install-path": "../patrickschur/language-detection" "install-path": "../patrickschur/language-detection"
} }

View file

@ -3,7 +3,7 @@
'name' => '__root__', 'name' => '__root__',
'pretty_version' => 'dev-main', 'pretty_version' => 'dev-main',
'version' => 'dev-main', 'version' => 'dev-main',
'reference' => '1eadd2f3cef4674418678df6214162bd5ef8c123', 'reference' => '10c321013f5a6d0f06f3899ebbc076188d1109f0',
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),
@ -13,16 +13,16 @@
'__root__' => array( '__root__' => array(
'pretty_version' => 'dev-main', 'pretty_version' => 'dev-main',
'version' => 'dev-main', 'version' => 'dev-main',
'reference' => '1eadd2f3cef4674418678df6214162bd5ef8c123', 'reference' => '10c321013f5a6d0f06f3899ebbc076188d1109f0',
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),
'dev_requirement' => false, 'dev_requirement' => false,
), ),
'patrickschur/language-detection' => array( 'patrickschur/language-detection' => array(
'pretty_version' => 'v5.2.0', 'pretty_version' => 'v5.1.0',
'version' => '5.2.0.0', 'version' => '5.1.0.0',
'reference' => '4849c2e8618cce09dbe15d5b534b51137bd6d477', 'reference' => '728f1434dcf126ce3ed7118567c014d80d7fdd9c',
'type' => 'library', 'type' => 'library',
'install_path' => __DIR__ . '/../patrickschur/language-detection', 'install_path' => __DIR__ . '/../patrickschur/language-detection',
'aliases' => array(), 'aliases' => array(),

View file

@ -4,8 +4,8 @@
$issues = array(); $issues = array();
if (!(PHP_VERSION_ID >= 70400)) { if (!(PHP_VERSION_ID >= 70300)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.'; $issues[] = 'Your Composer dependencies require a PHP version ">= 7.3.0". You are running ' . PHP_VERSION . '.';
} }
if ($issues) { if ($issues) {

View file

@ -24,7 +24,7 @@
} }
}, },
"require": { "require": {
"php": "^7.4 || ^8.0", "php": "^7.3 || ^8.0",
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-json": "*" "ext-json": "*"
}, },

View file

@ -36,7 +36,7 @@ The files are provided by [Unicode.org](http://www.unicode.org/udhr).
| 🇳🇴 Norwegian, Nynorsk | nn | Dzongkha | dz | | 🇳🇴 Norwegian, Nynorsk | nn | Dzongkha | dz |
| Navajo | nv | 🇬🇷 Greek (monotonic) | el-monoton | | Navajo | nv | 🇬🇷 Greek (monotonic) | el-monoton |
| 🇵🇱 Polish | pl | 🇬🇷 Greek (polytonic) | el-polyton | | 🇵🇱 Polish | pl | 🇬🇷 Greek (polytonic) | el-polyton |
| 🇧🇷 Portuguese (Brazil) | pt-BR | 🇬🇧 🇺🇸 English | en | | 🇵🇹 Portuguese (Brazil) | pt-BR | 🇬🇧 🇺🇸 English | en |
| 🇵🇹 Portuguese (Portugal) | pt-PT | Esperanto | eo | | 🇵🇹 Portuguese (Portugal) | pt-PT | Esperanto | eo |
| 🇷🇴 Romanian | ro | 🇪🇸 Spanish | es | | 🇷🇴 Romanian | ro | 🇪🇸 Spanish | es |
| 🇷🇺 Russian | ru | Sanskrit | sa | | 🇷🇺 Russian | ru | Sanskrit | sa |

View file

@ -34,7 +34,7 @@ class LanguageResult implements \JsonSerializable, \IteratorAggregate, \ArrayAcc
* @param mixed $offset * @param mixed $offset
* @return bool * @return bool
*/ */
public function offsetExists($offset): bool public function offsetExists($offset)
{ {
return isset($this->result[$offset]); return isset($this->result[$offset]);
} }
@ -43,7 +43,7 @@ class LanguageResult implements \JsonSerializable, \IteratorAggregate, \ArrayAcc
* @param mixed $offset * @param mixed $offset
* @return mixed|null * @return mixed|null
*/ */
public function offsetGet($offset): ?float public function offsetGet($offset)
{ {
return $this->result[$offset] ?? null; return $this->result[$offset] ?? null;
} }
@ -53,7 +53,7 @@ class LanguageResult implements \JsonSerializable, \IteratorAggregate, \ArrayAcc
* @param mixed $value * @param mixed $value
* @return void * @return void
*/ */
public function offsetSet($offset, $value): void public function offsetSet($offset, $value)
{ {
if (null === $offset) { if (null === $offset) {
$this->result[] = $value; $this->result[] = $value;
@ -65,7 +65,7 @@ class LanguageResult implements \JsonSerializable, \IteratorAggregate, \ArrayAcc
/** /**
* @param mixed $offset * @param mixed $offset
*/ */
public function offsetUnset($offset): void public function offsetUnset($offset)
{ {
unset($this->result[$offset]); unset($this->result[$offset]);
} }