1*c609f1dcSAndreas Gohr<?php 2*c609f1dcSAndreas Gohr 3*c609f1dcSAndreas Gohr// platform_check.php @generated by Composer 4*c609f1dcSAndreas Gohr 5*c609f1dcSAndreas Gohr$issues = array(); 6*c609f1dcSAndreas Gohr 7*c609f1dcSAndreas Gohrif (!(PHP_VERSION_ID >= 70300)) { 8*c609f1dcSAndreas Gohr $issues[] = 'Your Composer dependencies require a PHP version ">= 7.3.0". You are running ' . PHP_VERSION . '.'; 9*c609f1dcSAndreas Gohr} 10*c609f1dcSAndreas Gohr 11*c609f1dcSAndreas Gohrif ($issues) { 12*c609f1dcSAndreas Gohr if (!headers_sent()) { 13*c609f1dcSAndreas Gohr header('HTTP/1.1 500 Internal Server Error'); 14*c609f1dcSAndreas Gohr } 15*c609f1dcSAndreas Gohr if (!ini_get('display_errors')) { 16*c609f1dcSAndreas Gohr if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 17*c609f1dcSAndreas Gohr fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); 18*c609f1dcSAndreas Gohr } elseif (!headers_sent()) { 19*c609f1dcSAndreas Gohr 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; 20*c609f1dcSAndreas Gohr } 21*c609f1dcSAndreas Gohr } 22*c609f1dcSAndreas Gohr throw new \RuntimeException( 23*c609f1dcSAndreas Gohr 'Composer detected issues in your platform: ' . implode(' ', $issues) 24*c609f1dcSAndreas Gohr ); 25*c609f1dcSAndreas Gohr} 26