Created
December 26, 2013 09:05
-
-
Save blackheaven/8131479 to your computer and use it in GitHub Desktop.
Why I don't like dynamic types systems.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// web/index.php in Silex | |
// .. | |
$app->register(new Silex\Provider\TranslationServiceProvider(), array( | |
'locale' => array('fr'), // Instead of 'locale' => 'fr', | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: Illegal offset type in /.../vendor/symfony/translation/Symfony/Component/Translation/Translator.php on line 99 | |
Warning: Illegal offset type in unset in /.../vendor/symfony/translation/Symfony/Component/Translation/Translator.php on line 104 | |
Warning: Illegal offset type in /.../vendor/symfony/translation/Symfony/Component/Translation/Translator.php on line 99 | |
Warning: Illegal offset type in unset in /.../vendor/symfony/translation/Symfony/Component/Translation/Translator.php on line 104 | |
// Instead of having something in web/index.php where the error comes from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment