@@ -39,7 +39,7 @@ final class EventDispatchingPassTest extends TestCase
39
39
* @test
40
40
* @group DependencyInjection
41
41
*/
42
- public function testProcessFullConfiguration ()
42
+ public function testProcessFullConfiguration (): void
43
43
{
44
44
$ container = new ContainerBuilder ();
45
45
$ container ->setParameter ('kernel.debug ' , true );
@@ -74,7 +74,7 @@ public function testProcessFullConfiguration()
74
74
* @test
75
75
* @group DependencyInjection
76
76
*/
77
- public function testProcessFullConfigurationWithSingleLogItemDisabled ()
77
+ public function testProcessFullConfigurationWithSingleLogItemDisabled (): void
78
78
{
79
79
$ container = $ this ->containerWithConfig ([
80
80
'log ' => [
@@ -129,7 +129,7 @@ public function testProcessMinimalConfiguration()
129
129
* @test
130
130
* @group DependencyInjection
131
131
*/
132
- public function testBearerToken ()
132
+ public function testBearerToken (): void
133
133
{
134
134
$ container = $ this ->containerWithConfig (['options ' => ['bearer_token ' => 'foobar ' ]]);
135
135
@@ -141,7 +141,7 @@ public function testBearerToken()
141
141
* @test
142
142
* @group DependencyInjection
143
143
*/
144
- public function testWithFaultyAdapter ()
144
+ public function testWithFaultyAdapter (): void
145
145
{
146
146
$ this ->expectException (\RuntimeException::class);
147
147
@@ -152,7 +152,7 @@ public function testWithFaultyAdapter()
152
152
* @test
153
153
* @group DependencyInjection
154
154
*/
155
- public function testWithFaultyFormatter ()
155
+ public function testWithFaultyFormatter (): void
156
156
{
157
157
$ this ->expectException (\RuntimeException::class);
158
158
@@ -163,7 +163,7 @@ public function testWithFaultyFormatter()
163
163
* @test
164
164
* @group DependencyInjection
165
165
*/
166
- public function testWithFaultyListener ()
166
+ public function testWithFaultyListener (): void
167
167
{
168
168
$ this ->expectException (\RuntimeException::class);
169
169
@@ -174,7 +174,7 @@ public function testWithFaultyListener()
174
174
* @test
175
175
* @group DependencyInjection
176
176
*/
177
- public function testWithLogItemAliases ()
177
+ public function testWithLogItemAliases (): void
178
178
{
179
179
$ container = new ContainerBuilder ();
180
180
$ container ->setParameter ('kernel.debug ' , true );
@@ -209,7 +209,7 @@ public function testWithLogItemAliases()
209
209
* @param array $faulty
210
210
* @return ContainerBuilder
211
211
*/
212
- private function containerWithConfig (array $ faulty = [])
212
+ private function containerWithConfig (array $ faulty = []): ContainerBuilder
213
213
{
214
214
$ container = new ContainerBuilder ();
215
215
$ container ->setParameter ('kernel.debug ' , true );
@@ -235,7 +235,7 @@ private function containerWithConfig(array $faulty = [])
235
235
/**
236
236
* @param ContainerBuilder $container
237
237
*/
238
- protected function registerBasicServices (ContainerBuilder $ container )
238
+ protected function registerBasicServices (ContainerBuilder $ container ): void
239
239
{
240
240
$ container ->register (EventDispatcher::class, EventDispatcher::class)->addTag (
241
241
TmdbSymfonyBundle::PSR14_EVENT_DISPATCHERS
@@ -279,7 +279,7 @@ protected function registerBasicServices(ContainerBuilder $container)
279
279
/**
280
280
* @param ContainerBuilder $container
281
281
*/
282
- protected function registerListenerServices (ContainerBuilder $ container )
282
+ protected function registerListenerServices (ContainerBuilder $ container ): void
283
283
{
284
284
$ container ->register (RequestListener::class, RequestListener::class);
285
285
$ container ->register (Psr6CachedRequestListener::class, Psr6CachedRequestListener::class);
@@ -306,7 +306,8 @@ protected function doAssertCountListenersRegistered(
306
306
int $ httpClientExceptionEventCount = 0 ,
307
307
int $ tmdbExceptionEventCount = 0 ,
308
308
int $ beforeHydrationEventCount = 0
309
- ) {
309
+ ): void
310
+ {
310
311
/** @var Client $client */
311
312
$ client = $ container ->get (Client::class);
312
313
0 commit comments