diff options
author | Andrew Dolgov <[email protected]> | 2022-07-31 13:55:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-07-31 13:55:09 +0300 |
commit | 26c67dba776e1e6f8ac40eed70fe79995325863d (patch) | |
tree | 862b043fa666e44ed0b2c997a98b1a256b26ee12 /vendor/composer/platform_check.php | |
parent | d5c043e8467881c00b2cd836f2f37b8479cf0b96 (diff) |
update phpstan to 1.8.2
Diffstat (limited to 'vendor/composer/platform_check.php')
-rw-r--r-- | vendor/composer/platform_check.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php new file mode 100644 index 000000000..adfb472fb --- /dev/null +++ b/vendor/composer/platform_check.php @@ -0,0 +1,26 @@ +<?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 + ); +} |