Skip to content

Commit a4a10d4

Browse files
authored
Merge pull request #49 from moufmouf/10.0
Adding return type hinting on class generation
2 parents 93f95b0 + 1649c33 commit a4a10d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Mouf/Mvc/Splash/Services/SplashCreateControllerService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ public function generate(MoufManager $moufManager, $controllerName, $instanceNam
134134
?>
135135
use Psr\Log\LoggerInterface;
136136
<?php
137-
138137
}
139-
?>
138+
?>
139+
use Psr\Http\Message\ResponseInterface;
140140
<?php if ($injectDaoFactory) {
141141
?>
142142
use <?= $moufManager->getVariable('tdbmDefaultDaoNamespace').'\\Generated\\'.$moufManager->getVariable('tdbmDefaultDaoFactoryName') ?>;
@@ -345,7 +345,7 @@ public function <?= $action['method'] ?>(<?php
345345
$parametersCode[] = $parameterCode;
346346
}
347347
echo implode(', ', $parametersCode);
348-
?>) {
348+
?>): ResponseInterface {
349349
// TODO: write content of action here
350350

351351
<?php if ($injectTemplate && $action['view'] == 'twig'): ?>

0 commit comments

Comments
 (0)