Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae9bda1

Browse filesBrowse files
committed
bug #22611 [FrameworkBundle] Fix "Locale class not found" in AboutCommand (rubenrua)
This PR was merged into the 3.3-dev branch. Discussion ---------- [FrameworkBundle] Fix "Locale class not found" in AboutCommand | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Found testing http://fabien.potencier.org/symfony4-demo.html with docker `php:7.1` Commits ------- 0269f9d [FrameworkBundle] Fix "Locale class not found" in AboutCommand
2 parents ca509ea + 0269f9d commit ae9bda1
Copy full SHA for ae9bda1

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7070
new TableSeparator(),
7171
array('Version', PHP_VERSION),
7272
array('Architecture', (PHP_INT_SIZE * 8).' bits'),
73-
array('Intl locale', \Locale::getDefault() ?: 'n/a'),
73+
array('Intl locale', class_exists('Locale', false) && \Locale::getDefault() ? \Locale::getDefault() : 'n/a'),
7474
array('Timezone', date_default_timezone_get().' (<comment>'.(new \DateTime())->format(\DateTime::W3C).'</>)'),
7575
array('OPcache', extension_loaded('Zend OPcache') && ini_get('opcache.enable') ? 'true' : 'false'),
7676
array('APCu', extension_loaded('apcu') && ini_get('apc.enabled') ? 'true' : 'false'),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.