diff options
| author | fox <fox@noreply.tt-rss.org> | 2021-11-02 08:37:11 +0300 |
|---|---|---|
| committer | fox <fox@noreply.tt-rss.org> | 2021-11-02 08:37:11 +0300 |
| commit | 7a52560e4e3b0652d32645b60ae13e4904f606bc (patch) | |
| tree | 42b5748e6fc518a48adf52ec97a2f084acbfd036 /vendor/composer/platform_check.php | |
| parent | 9714c4fbcf76492d084ca5327cbab1ad1b662280 (diff) | |
| parent | 57436ee0c184c5fa362c66f8383a8a3b29f171cf (diff) | |
Merge pull request 'PHPStan 1.0.0 and related warning fixes' (#49) from wn/tt-rss:feature/phpstan-1.0.0-and-fixes into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/49
Diffstat (limited to 'vendor/composer/platform_check.php')
| -rw-r--r-- | vendor/composer/platform_check.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php deleted file mode 100644 index 589e9e770..000000000 --- a/vendor/composer/platform_check.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -// platform_check.php @generated by Composer - -$issues = array(); - -if (!(PHP_VERSION_ID >= 70200)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.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 - ); -} |