@@ -33,10 +33,7 @@ abstract class IntegrationTestCase extends TestCase
3333 /** @var Environment */
3434 private $ twig ;
3535
36- /**
37- * @return void
38- */
39- protected function setUp ()
36+ protected function setUp (): void
4037 {
4138 if (empty ($ this ->templateDirectory )) {
4239 throw new LogicException ('Template directory is not set in ' . static ::class);
@@ -57,12 +54,6 @@ protected function setUp()
5754 parent ::setUp ();
5855 }
5956
60- /**
61- * @param string $template
62- * @param mixed[] $variables
63- *
64- * @return string[]
65- */
6657 final protected function renderTemplate (string $ template , array $ variables = []): array
6758 {
6859 return $ this ->pipeline ->withRequest ($ this ->request , function () use ($ template , $ variables ): array {
@@ -75,13 +66,7 @@ final protected function renderTemplate(string $template, array $variables = [])
7566 });
7667 }
7768
78- /**
79- * @param string $id
80- * @param object $service
81- *
82- * @return void
83- */
84- final protected function addToContainer (string $ id , $ service )
69+ final protected function addToContainer (string $ id , object $ service ): void
8570 {
8671 if (isset ($ this ->container [$ id ])) {
8772 throw new LogicException ("Service with ID ' {$ id }' already exists in container " );
@@ -90,9 +75,6 @@ final protected function addToContainer(string $id, $service)
9075 $ this ->container [$ id ] = $ service ;
9176 }
9277
93- /**
94- * @return ContainerInterface
95- */
9678 private function createContainer (): ContainerInterface
9779 {
9880 return new class ($ this ->container ) implements ContainerInterface
0 commit comments