for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
* Settings Module Bootstrap
*
* @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
* @license MIT
*/
/** Core */
namespace Settings;
use Zend\Mvc\MvcEvent;
use Settings\Listener\InjectSubNavigationListener;
* Bootstrap class of the Settings module
class Module
{
* Sets up services on the bootstrap event.
* @internal
* Creates the translation service and a ModuleRouteListener
* @param MvcEvent $e
public function onBootstrap(MvcEvent $e)
$events = $e->getApplication()->getEventManager();
$events->attach(
array(MvcEvent::EVENT_RENDER, MvcEvent::EVENT_RENDER_ERROR),
array(\Zend\Mvc\MvcEvent...nt::EVENT_RENDER_ERROR)
array<integer,?>
string
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
new InjectSubNavigationListener(),
10
);
}
* Loads module specific configuration.
* @return array
public function getConfig()
return include __DIR__ . '/config/module.config.php';
* Loads module specific autoloader configuration.
public function getAutoloaderConfig()
return array(
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: