Skip to content

Commit aa7e026

Browse files
committed
upgrading deps
1 parent ac93633 commit aa7e026

File tree

3 files changed

+1522
-395
lines changed

3 files changed

+1522
-395
lines changed

app/SymfonyRequirements.php

Lines changed: 3 additions & 10 deletions
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(
@@ -446,15 +446,8 @@ public function __construct()
446446
);
447447

448448
if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) {
449-
$timezones = array();
450-
foreach (DateTimeZone::listAbbreviations() as $abbreviations) {
451-
foreach ($abbreviations as $abbreviation) {
452-
$timezones[$abbreviation['timezone_id']] = true;
453-
}
454-
}
455-
456449
$this->addRequirement(
457-
isset($timezones[@date_default_timezone_get()]),
450+
in_array(@date_default_timezone_get(), DateTimeZone::listIdentifiers(), true),
458451
sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()),
459452
'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>.'
460453
);
@@ -720,7 +713,7 @@ function_exists('posix_isatty'),
720713
'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).'
721714
);
722715

723-
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
716+
if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) {
724717
$this->addRecommendation(
725718
$this->getRealpathCacheSize() >= 5 * 1024 * 1024,
726719
'realpath_cache_size should be at least 5M in php.ini',

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"require": {
1111
"php": ">=5.3.9",
12-
"symfony/symfony": "2.7.*",
12+
"symfony/symfony": "2.8.*",
1313
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
1414
"doctrine/dbal": "<2.5",
1515
"doctrine/doctrine-bundle": "~1.4",

0 commit comments

Comments
 (0)