Skip to content

Commit

Permalink
Merge pull request #101 from WyriHaximus/4.x-94
Browse files Browse the repository at this point in the history
 readOrFail for App.encoding
  • Loading branch information
WyriHaximus authored Dec 17, 2018
2 parents 54d69c1 + 8dd9f5a commit a5ec666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/View/TwigView.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function resolveConfig()
{
$config = [
'cache' => CACHE . 'twigView' . DS,
'charset' => strtolower(Configure::read('App.encoding')),
'charset' => strtolower(Configure::readOrFail('App.encoding')),
'auto_reload' => Configure::read('debug'),
'debug' => Configure::read('debug'),
];
Expand Down
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
Cake\Core\Configure::write(
'App',
[
'namespace' => 'App'
'namespace' => 'App',
'encoding' => 'utf-8',
]
);

Expand Down

0 comments on commit a5ec666

Please sign in to comment.