When the debugger reach a file that has "strict_types" enabled, it throw an fatal error (look below for example). While if you run same code in the browser it execute as expected with no fatal errors thrown.
Fatal error: strict_types declaration must be the very first statement in the script in [path] on line 2
$controller = new \Kaizen\Controller();
$controller->launch('home', 'login', 'control');
If the "strict_types" is removed, the debugger run as normal until it hit the next file where it is set.
Not sure where the error lies, if it is on PHPStorm side or Zend Server, but if anyone have an idea on how this can be solved I would be grateful.
The software versions are:
PHPStorm version 2016.3.2
Zend Server version 9.1.1 with PHP 7.1.7