Skip to content
Permalink
Browse files

Added typehinting to application class

  • Loading branch information...
jeremyharris committed May 3, 2018
1 parent 1d6d1c9 commit d6a356cee462301987521e8617f58bcf8feba2b9
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/TestSuite/ConsoleIntegrationTestCase.php
@@ -252,8 +252,10 @@ protected function _makeRunner()
{
if ($this->_useCommandRunner) {
$applicationClassName = Configure::read('App.namespace') . '\Application';
/** @var \Cake\Http\BaseApplication $applicationClass */
$applicationClass = new $applicationClassName(CONFIG);
return new CommandRunner(new $applicationClassName(CONFIG));
return new CommandRunner($applicationClass);
}
return new LegacyCommandRunner();

0 comments on commit d6a356c

Please sign in to comment.
You can’t perform that action at this time.