Skip to content

Commit

Permalink
Merge branch 'feature/dont-touch-error-level' into 'master'
Browse files Browse the repository at this point in the history
Don't override error_reporting by default



See merge request !1
  • Loading branch information
waltertamboer committed Jul 1, 2016
2 parents 6fa0224 + 0d36dd0 commit 18214d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

namespace PolderKnowledge\PhpSettingsModule;

return array(
'phpSettings' => array(
'error_reporting' => 0,
return [
'phpSettings' => [
// defaults for production environment
'display_errors' => 0,
'display_startup_errors' => 0,
),
);
],
];
14 changes: 7 additions & 7 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class Module
*/
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
return [
'Zend\Loader\StandardAutoloader' => [
'namespaces' => [
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
),
);
],
],
];
}

/**
Expand All @@ -56,7 +56,7 @@ public function init(ModuleManager $moduleManager)
$sharedManager->attach(
Application::class,
MvcEvent::EVENT_BOOTSTRAP,
array(new PhpSettings, 'onBootstrap'),
[new PhpSettings, 'onBootstrap'],
PHP_INT_MAX
);
}
Expand Down

0 comments on commit 18214d8

Please sign in to comment.