Skip to content

Commit 6a1fa09

Browse files
Cleanup @return annotations
1 parent ca9d938 commit 6a1fa09

13 files changed

+29
-29
lines changed

EventListener/AbstractSessionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public static function getSubscribedEvents(): array
191191
/**
192192
* Gets the session object.
193193
*
194-
* @return SessionInterface|null A SessionInterface instance or null if no session is available
194+
* @return SessionInterface|null
195195
*/
196196
abstract protected function getSession();
197197
}

EventListener/AbstractTestSessionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function getSubscribedEvents(): array
112112
*
113113
* @deprecated since Symfony 5.4, will be removed in 6.0.
114114
*
115-
* @return SessionInterface|null A SessionInterface instance or null if no session is available
115+
* @return SessionInterface|null
116116
*/
117117
abstract protected function getSession();
118118
}

Fragment/FragmentRendererInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface FragmentRendererInterface
2727
*
2828
* @param string|ControllerReference $uri A URI as a string or a ControllerReference instance
2929
*
30-
* @return Response A Response instance
30+
* @return Response
3131
*/
3232
public function render($uri, Request $request, array $options = []);
3333

HttpCache/AbstractSurrogate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(array $contentTypes = ['text/html', 'text/xml', 'app
4141
/**
4242
* Returns a new cache strategy instance.
4343
*
44-
* @return ResponseCacheStrategyInterface A ResponseCacheStrategyInterface instance
44+
* @return ResponseCacheStrategyInterface
4545
*/
4646
public function createCacheStrategy()
4747
{

HttpCache/HttpCache.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function __construct(HttpKernelInterface $kernel, StoreInterface $store,
106106
/**
107107
* Gets the current store.
108108
*
109-
* @return StoreInterface A StoreInterface instance
109+
* @return StoreInterface
110110
*/
111111
public function getStore()
112112
{
@@ -158,7 +158,7 @@ public function getLog()
158158
/**
159159
* Gets the Request instance associated with the main request.
160160
*
161-
* @return Request A Request instance
161+
* @return Request
162162
*/
163163
public function getRequest()
164164
{
@@ -168,7 +168,7 @@ public function getRequest()
168168
/**
169169
* Gets the Kernel instance.
170170
*
171-
* @return HttpKernelInterface An HttpKernelInterface instance
171+
* @return HttpKernelInterface
172172
*/
173173
public function getKernel()
174174
{
@@ -178,7 +178,7 @@ public function getKernel()
178178
/**
179179
* Gets the Surrogate instance.
180180
*
181-
* @return SurrogateInterface A Surrogate instance
181+
* @return SurrogateInterface
182182
*
183183
* @throws \LogicException
184184
*/
@@ -258,7 +258,7 @@ public function terminate(Request $request, Response $response)
258258
*
259259
* @param bool $catch Whether to process exceptions
260260
*
261-
* @return Response A Response instance
261+
* @return Response
262262
*/
263263
protected function pass(Request $request, bool $catch = false)
264264
{
@@ -272,7 +272,7 @@ protected function pass(Request $request, bool $catch = false)
272272
*
273273
* @param bool $catch Whether to process exceptions
274274
*
275-
* @return Response A Response instance
275+
* @return Response
276276
*
277277
* @throws \Exception
278278
*
@@ -320,7 +320,7 @@ protected function invalidate(Request $request, bool $catch = false)
320320
*
321321
* @param bool $catch Whether to process exceptions
322322
*
323-
* @return Response A Response instance
323+
* @return Response
324324
*
325325
* @throws \Exception
326326
*/
@@ -369,7 +369,7 @@ protected function lookup(Request $request, bool $catch = false)
369369
*
370370
* @param bool $catch Whether to process exceptions
371371
*
372-
* @return Response A Response instance
372+
* @return Response
373373
*/
374374
protected function validate(Request $request, Response $entry, bool $catch = false)
375375
{
@@ -432,7 +432,7 @@ protected function validate(Request $request, Response $entry, bool $catch = fal
432432
*
433433
* @param bool $catch Whether to process exceptions
434434
*
435-
* @return Response A Response instance
435+
* @return Response
436436
*/
437437
protected function fetch(Request $request, bool $catch = false)
438438
{
@@ -465,7 +465,7 @@ protected function fetch(Request $request, bool $catch = false)
465465
* @param bool $catch Whether to catch exceptions or not
466466
* @param Response|null $entry A Response instance (the stale entry if present, null otherwise)
467467
*
468-
* @return Response A Response instance
468+
* @return Response
469469
*/
470470
protected function forward(Request $request, bool $catch = false, Response $entry = null)
471471
{

HttpCache/Store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function isLocked(Request $request)
125125
/**
126126
* Locates a cached Response for the Request provided.
127127
*
128-
* @return Response|null A Response instance, or null if no cache entry was found
128+
* @return Response|null
129129
*/
130130
public function lookup(Request $request)
131131
{

HttpCache/StoreInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface StoreInterface
2727
/**
2828
* Locates a cached Response for the Request provided.
2929
*
30-
* @return Response|null A Response instance, or null if no cache entry was found
30+
* @return Response|null
3131
*/
3232
public function lookup(Request $request);
3333

HttpCache/SurrogateInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getName();
2626
/**
2727
* Returns a new cache strategy instance.
2828
*
29-
* @return ResponseCacheStrategyInterface A ResponseCacheStrategyInterface instance
29+
* @return ResponseCacheStrategyInterface
3030
*/
3131
public function createCacheStrategy();
3232

HttpKernelBrowser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function catchExceptions(bool $catchExceptions)
5858
*
5959
* @param Request $request
6060
*
61-
* @return Response A Response instance
61+
* @return Response
6262
*/
6363
protected function doRequest(object $request)
6464
{
@@ -130,7 +130,7 @@ protected function getHandleScript()
130130
/**
131131
* {@inheritdoc}
132132
*
133-
* @return Request A Request instance
133+
* @return Request
134134
*/
135135
protected function filterRequest(DomRequest $request)
136136
{
@@ -194,7 +194,7 @@ protected function filterFiles(array $files)
194194
*
195195
* @param Request $request
196196
*
197-
* @return DomResponse A DomResponse instance
197+
* @return DomResponse
198198
*/
199199
protected function filterResponse(object $response)
200200
{

HttpKernelInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface HttpKernelInterface
4040
* (one of HttpKernelInterface::MAIN_REQUEST or HttpKernelInterface::SUB_REQUEST)
4141
* @param bool $catch Whether to catch exceptions or not
4242
*
43-
* @return Response A Response instance
43+
* @return Response
4444
*
4545
* @throws \Exception When an Exception occurs during processing
4646
*/

0 commit comments

Comments
 (0)