disable composer platform check

This commit is contained in:
Andrew Dolgov 2022-08-01 20:38:16 +03:00
parent 26c67dba77
commit ed2cbeffcc
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
5 changed files with 7 additions and 32 deletions

View File

@ -1,4 +1,7 @@
{
"config": {
"platform-check": false
},
"repositories": [
{
"name": "j4mie/idiorm",

View File

@ -30,7 +30,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => 'd5c043e8467881c00b2cd836f2f37b8479cf0b96',
'reference' => '26c67dba776e1e6f8ac40eed70fe79995325863d',
'name' => '__root__',
),
'versions' =>
@ -42,7 +42,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => 'd5c043e8467881c00b2cd836f2f37b8479cf0b96',
'reference' => '26c67dba776e1e6f8ac40eed70fe79995325863d',
),
'beberlei/assert' =>
array (

View File

@ -22,8 +22,6 @@ class ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056
return self::$loader;
}
require __DIR__ . '/platform_check.php';
spl_autoload_register(array('ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056', 'loadClassLoader'));

View File

@ -6,7 +6,7 @@
'aliases' =>
array (
),
'reference' => 'd5c043e8467881c00b2cd836f2f37b8479cf0b96',
'reference' => '26c67dba776e1e6f8ac40eed70fe79995325863d',
'name' => '__root__',
),
'versions' =>
@ -18,7 +18,7 @@
'aliases' =>
array (
),
'reference' => 'd5c043e8467881c00b2cd836f2f37b8479cf0b96',
'reference' => '26c67dba776e1e6f8ac40eed70fe79995325863d',
),
'beberlei/assert' =>
array (

View File

@ -1,26 +0,0 @@
<?php
// platform_check.php @generated by Composer
$issues = array();
if (!(PHP_VERSION_ID >= 80000)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.0". You are running ' . PHP_VERSION . '.';
}
if ($issues) {
if (!headers_sent()) {
header('HTTP/1.1 500 Internal Server Error');
}
if (!ini_get('display_errors')) {
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
} elseif (!headers_sent()) {
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
}
}
trigger_error(
'Composer detected issues in your platform: ' . implode(' ', $issues),
E_USER_ERROR
);
}