Skip to content

Commit 9a4e1c0

Browse files
Merge branch '5.4' into 6.0
* 5.4: [Serializer] cs fix Cleanup more `@return` annotations [Form] Fix phpdoc on FormBuilderInterface
2 parents e47a3e6 + 1b8585c commit 9a4e1c0

27 files changed

+4
-117
lines changed

Bundle/Bundle.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public function build(ContainerBuilder $container)
5858
/**
5959
* Returns the bundle's container extension.
6060
*
61-
* @return ExtensionInterface|null The container extension
62-
*
6361
* @throws \LogicException
6462
*/
6563
public function getContainerExtension(): ?ExtensionInterface

Bundle/BundleInterface.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,23 @@ public function build(ContainerBuilder $container);
4141

4242
/**
4343
* Returns the container extension that should be implicitly loaded.
44-
*
45-
* @return ExtensionInterface|null The default extension or null if there is none
4644
*/
4745
public function getContainerExtension(): ?ExtensionInterface;
4846

4947
/**
5048
* Returns the bundle name (the class short name).
51-
*
52-
* @return string The Bundle name
5349
*/
5450
public function getName(): string;
5551

5652
/**
5753
* Gets the Bundle namespace.
58-
*
59-
* @return string The Bundle namespace
6054
*/
6155
public function getNamespace(): string;
6256

6357
/**
6458
* Gets the Bundle directory path.
6559
*
6660
* The path should always be returned as a Unix path (with /).
67-
*
68-
* @return string The Bundle absolute path
6961
*/
7062
public function getPath(): string;
7163
}

CacheWarmer/CacheWarmerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface CacheWarmerInterface extends WarmableInterface
2626
* A warmer should return true if the cache can be
2727
* generated incrementally and on-demand.
2828
*
29-
* @return bool true if the warmer is optional, false otherwise
29+
* @return bool
3030
*/
3131
public function isOptional();
3232
}

Controller/ArgumentResolverInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ interface ArgumentResolverInterface
2424
/**
2525
* Returns the arguments to pass to the controller.
2626
*
27-
* @return array An array of arguments to pass to the controller
28-
*
2927
* @throws \RuntimeException When no value could be provided for a required argument
3028
*/
3129
public function getArguments(Request $request, callable $controller): array;

Controller/ControllerResolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ public function getController(Request $request): callable|false
9191
/**
9292
* Returns a callable for the given controller.
9393
*
94-
* @return callable A PHP callable
95-
*
9694
* @throws \InvalidArgumentException When the controller cannot be created
9795
*/
9896
protected function createController(string $controller): callable

DataCollector/DataCollectorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function collect(Request $request, Response $response, \Throwable $except
3030
/**
3131
* Returns the name of the collector.
3232
*
33-
* @return string The collector name
33+
* @return string
3434
*/
3535
public function getName();
3636
}

DataCollector/RouterDataCollector.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,11 @@ public function getRedirect(): bool
8282
return $this->data['redirect'];
8383
}
8484

85-
/**
86-
* @return string|null The target URL
87-
*/
8885
public function getTargetUrl(): ?string
8986
{
9087
return $this->data['url'];
9188
}
9289

93-
/**
94-
* @return string|null The target route
95-
*/
9690
public function getTargetRoute(): ?string
9791
{
9892
return $this->data['route'];

DependencyInjection/Extension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ abstract class Extension extends BaseExtension
2424

2525
/**
2626
* Gets the annotated classes to cache.
27-
*
28-
* @return array An array of classes
2927
*/
3028
public function getAnnotatedClassesToCompile(): array
3129
{

Event/RequestEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public function setResponse(Response $response)
4646

4747
/**
4848
* Returns whether a response was set.
49-
*
50-
* @return bool Whether a response was set
5149
*/
5250
public function hasResponse(): bool
5351
{

Exception/HttpExceptionInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@ interface HttpExceptionInterface extends \Throwable
2020
{
2121
/**
2222
* Returns the status code.
23-
*
24-
* @return int An HTTP response status code
2523
*/
2624
public function getStatusCode(): int;
2725

2826
/**
2927
* Returns response headers.
30-
*
31-
* @return array Response headers
3228
*/
3329
public function getHeaders(): array;
3430
}

0 commit comments

Comments
 (0)