Skip to content

Commit aecadba

Browse files
wouterjnicolas-grekas
authored andcommitted
[HttpFoundation][HttpKernel] Add missing void PHPdoc return types
1 parent e051bb5 commit aecadba

11 files changed

+30
-2
lines changed

CacheClearer/CacheClearerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ interface CacheClearerInterface
2020
{
2121
/**
2222
* Clears any caches necessary.
23+
*
24+
* @return void
2325
*/
2426
public function clear(string $cacheDir);
2527
}

HttpCache/ResponseCacheStrategyInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ interface ResponseCacheStrategyInterface
2727
{
2828
/**
2929
* Adds a Response.
30+
*
31+
* @return void
3032
*/
3133
public function add(Response $response);
3234

3335
/**
3436
* Updates the Response HTTP headers based on the embedded Responses.
37+
*
38+
* @return void
3539
*/
3640
public function update(Response $response);
3741
}

HttpCache/StoreInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function write(Request $request, Response $response): string;
4141

4242
/**
4343
* Invalidates all cache entries that match the request.
44+
*
45+
* @return void
4446
*/
4547
public function invalidate(Request $request);
4648

@@ -74,6 +76,8 @@ public function purge(string $url): bool;
7476

7577
/**
7678
* Cleanups storage.
79+
*
80+
* @return void
7781
*/
7882
public function cleanup();
7983
}

HttpCache/SurrogateInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ public function hasSurrogateCapability(Request $request): bool;
3333

3434
/**
3535
* Adds Surrogate-capability to the given Request.
36+
*
37+
* @return void
3638
*/
3739
public function addSurrogateCapability(Request $request);
3840

3941
/**
4042
* Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
4143
*
4244
* This method only adds an Surrogate HTTP header if the Response has some Surrogate tags.
45+
*
46+
* @return void
4347
*/
4448
public function addSurrogateControl(Response $response);
4549

KernelInterface.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,24 @@ public function registerBundles(): iterable;
3333

3434
/**
3535
* Loads the container configuration.
36+
*
37+
* @return void
3638
*/
3739
public function registerContainerConfiguration(LoaderInterface $loader);
3840

3941
/**
4042
* Boots the current kernel.
43+
*
44+
* @return void
4145
*/
4246
public function boot();
4347

4448
/**
4549
* Shutdowns the kernel.
4650
*
4751
* This method is mainly useful when doing functional testing.
52+
*
53+
* @return void
4854
*/
4955
public function shutdown();
5056

Log/DebugLoggerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public function countErrors(Request $request = null);
4444

4545
/**
4646
* Removes all log records.
47+
*
48+
* @return void
4749
*/
4850
public function clear();
4951
}

Profiler/ProfilerStorageInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function write(Profile $profile): bool;
4949

5050
/**
5151
* Purges all data from the database.
52+
*
53+
* @return void
5254
*/
5355
public function purge();
5456
}

RebootableInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ interface RebootableInterface
2525
* while building the container. Use the %kernel.build_dir% parameter instead.
2626
*
2727
* @param string|null $warmupDir pass null to reboot in the regular build directory
28+
*
29+
* @return void
2830
*/
2931
public function reboot(?string $warmupDir);
3032
}

TerminableInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ interface TerminableInterface
2727
* Terminates a request/response cycle.
2828
*
2929
* Should be called after sending the response and before shutting down the kernel.
30+
*
31+
* @return void
3032
*/
3133
public function terminate(Request $request, Response $response);
3234
}

Tests/DataCollector/ConfigDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function getBundles(): array
9090
return [];
9191
}
9292

93-
public function registerContainerConfiguration(LoaderInterface $loader)
93+
public function registerContainerConfiguration(LoaderInterface $loader): void
9494
{
9595
}
9696
}

Tests/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function getLogs($level = false): array
2727
return false === $level ? $this->logs : $this->logs[$level];
2828
}
2929

30-
public function clear()
30+
public function clear(): void
3131
{
3232
$this->logs = [
3333
'emergency' => [],

0 commit comments

Comments
 (0)