Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 1d284c4

Browse files
committed
updated VENDORS for 3.4.12
1 parent 6028fee commit 1d284c4

File tree

2 files changed

+37
-43
lines changed

2 files changed

+37
-43
lines changed

composer.lock

+34-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

var/SymfonyRequirements.php

+3-10
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public function __construct()
389389
{
390390
/* mandatory requirements follow */
391391

392-
$installedPhpVersion = phpversion();
392+
$installedPhpVersion = PHP_VERSION;
393393
$requiredPhpVersion = $this->getPhpRequiredVersion();
394394

395395
$this->addRecommendation(
@@ -448,15 +448,8 @@ public function __construct()
448448
}
449449

450450
if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) {
451-
$timezones = array();
452-
foreach (DateTimeZone::listAbbreviations() as $abbreviations) {
453-
foreach ($abbreviations as $abbreviation) {
454-
$timezones[$abbreviation['timezone_id']] = true;
455-
}
456-
}
457-
458451
$this->addRequirement(
459-
isset($timezones[@date_default_timezone_get()]),
452+
in_array(@date_default_timezone_get(), DateTimeZone::listIdentifiers(), true),
460453
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()),
461454
'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.'
462455
);
@@ -731,7 +724,7 @@ function_exists('posix_isatty'),
731724
'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).'
732725
);
733726

734-
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
727+
if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) {
735728
$this->addRecommendation(
736729
$this->getRealpathCacheSize() >= 5 * 1024 * 1024,
737730
'realpath_cache_size should be at least 5M in php.ini',

0 commit comments

Comments
 (0)