mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-07 06:26:45 +02:00
fixed missing square bracket in array
This commit is contained in:
@@ -257,7 +257,7 @@ call. More on domain configuration in the next example.
|
||||
* @return bool
|
||||
*/
|
||||
function valid($locale) {
|
||||
return in_array($locale, ['en_US', 'en', 'pt_BR', 'pt', 'es_ES', 'es');
|
||||
return in_array($locale, ['en_US', 'en', 'pt_BR', 'pt', 'es_ES', 'es']);
|
||||
}
|
||||
|
||||
//setting the source/default locale, for informational purposes
|
||||
|
Reference in New Issue
Block a user