Skip to content

Commit 6b6d562

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 f44b9cd + 9a55ba3 commit 6b6d562

16 files changed

+8
-109
lines changed

CompiledRoute.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ final public function unserialize(string $serialized)
9393

9494
/**
9595
* Returns the static prefix.
96-
*
97-
* @return string The static prefix
9896
*/
9997
public function getStaticPrefix(): string
10098
{
@@ -103,8 +101,6 @@ public function getStaticPrefix(): string
103101

104102
/**
105103
* Returns the regex.
106-
*
107-
* @return string The regex
108104
*/
109105
public function getRegex(): string
110106
{
@@ -113,8 +109,6 @@ public function getRegex(): string
113109

114110
/**
115111
* Returns the host regex.
116-
*
117-
* @return string|null The host regex or null
118112
*/
119113
public function getHostRegex(): ?string
120114
{
@@ -123,8 +117,6 @@ public function getHostRegex(): ?string
123117

124118
/**
125119
* Returns the tokens.
126-
*
127-
* @return array The tokens
128120
*/
129121
public function getTokens(): array
130122
{
@@ -133,8 +125,6 @@ public function getTokens(): array
133125

134126
/**
135127
* Returns the host tokens.
136-
*
137-
* @return array The tokens
138128
*/
139129
public function getHostTokens(): array
140130
{
@@ -143,8 +133,6 @@ public function getHostTokens(): array
143133

144134
/**
145135
* Returns the variables.
146-
*
147-
* @return array The variables
148136
*/
149137
public function getVariables(): array
150138
{
@@ -153,8 +141,6 @@ public function getVariables(): array
153141

154142
/**
155143
* Returns the path variables.
156-
*
157-
* @return array The variables
158144
*/
159145
public function getPathVariables(): array
160146
{
@@ -163,8 +149,6 @@ public function getPathVariables(): array
163149

164150
/**
165151
* Returns the host variables.
166-
*
167-
* @return array The variables
168152
*/
169153
public function getHostVariables(): array
170154
{

Generator/Dumper/GeneratorDumperInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ interface GeneratorDumperInterface
2323
/**
2424
* Dumps a set of routes to a string representation of executable code
2525
* that can then be used to generate a URL of such a route.
26-
*
27-
* @return string Executable code
2826
*/
2927
public function dump(array $options = []): string;
3028

Generator/UrlGenerator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,6 @@ protected function doGenerate(array $variables, array $defaults, array $requirem
329329
*
330330
* @param string $basePath The base path
331331
* @param string $targetPath The target path
332-
*
333-
* @return string The relative target path
334332
*/
335333
public static function getRelativePath(string $basePath, string $targetPath): string
336334
{

Generator/UrlGeneratorInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ interface UrlGeneratorInterface extends RequestContextAwareInterface
7171
*
7272
* The special parameter _fragment will be used as the document fragment suffixed to the final URL.
7373
*
74-
* @return string The generated URL
75-
*
7674
* @throws RouteNotFoundException If the named route doesn't exist
7775
* @throws MissingMandatoryParametersException When some parameters are missing that are mandatory for the route
7876
* @throws InvalidParameterException When a parameter value for a placeholder is not correct because

Loader/AnnotationFileLoader.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ public function supports(mixed $resource, string $type = null): bool
7272

7373
/**
7474
* Returns the full class name for the first class in the file.
75-
*
76-
* @return string|false Full class name if found, false otherwise
7775
*/
7876
protected function findClass(string $file): string|false
7977
{

Matcher/Dumper/MatcherDumperInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ interface MatcherDumperInterface
2323
/**
2424
* Dumps a set of routes to a string representation of executable code
2525
* that can then be used to match a request against these routes.
26-
*
27-
* @return string Executable code
2826
*/
2927
public function dump(array $options = []): string;
3028

Matcher/RedirectableUrlMatcherInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
interface RedirectableUrlMatcherInterface
2020
{
2121
/**
22-
* Redirects the user to another URL.
22+
* Redirects the user to another URL and returns the parameters for the redirection.
2323
*
2424
* @param string $path The path info to redirect to
2525
* @param string $route The route name that matched
2626
* @param string|null $scheme The URL scheme (null to keep the current one)
27-
*
28-
* @return array An array of parameters
2927
*/
3028
public function redirect(string $path, string $route, string $scheme = null): array;
3129
}

Matcher/RequestMatcherInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ interface RequestMatcherInterface
2929
* If the matcher can not find information, it must throw one of the exceptions documented
3030
* below.
3131
*
32-
* @return array An array of parameters
33-
*
3432
* @throws NoConfigurationException If no routing configuration could be found
3533
* @throws ResourceNotFoundException If no matching resource could be found
3634
* @throws MethodNotAllowedException If a matching resource was found but the request method is not allowed

Matcher/UrlMatcher.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ public function addExpressionLanguageProvider(ExpressionFunctionProviderInterfac
120120
*
121121
* @param string $pathinfo The path info to be parsed
122122
*
123-
* @return array An array of parameters
124-
*
125123
* @throws NoConfigurationException If no routing configuration could be found
126124
* @throws ResourceNotFoundException If the resource could not be found
127125
* @throws MethodNotAllowedException If the resource was found but the request method is not allowed
@@ -204,8 +202,6 @@ protected function matchCollection(string $pathinfo, RouteCollection $routes): a
204202
* As this method requires the Route object, it is not available
205203
* in matchers that do not have access to the matched Route instance
206204
* (like the PHP and Apache matcher dumpers).
207-
*
208-
* @return array An array of parameters
209205
*/
210206
protected function getAttributes(Route $route, string $name, array $attributes): array
211207
{
@@ -236,8 +232,6 @@ protected function handleRouteRequirements(string $pathinfo, string $name, Route
236232

237233
/**
238234
* Get merged default parameters.
239-
*
240-
* @return array Merged default parameters
241235
*/
242236
protected function mergeDefaults(array $params, array $defaults): array
243237
{

Matcher/UrlMatcherInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ interface UrlMatcherInterface extends RequestContextAwareInterface
3131
*
3232
* @param string $pathinfo The path info to be parsed (raw format, i.e. not urldecoded)
3333
*
34-
* @return array An array of parameters
35-
*
3634
* @throws NoConfigurationException If no routing configuration could be found
3735
* @throws ResourceNotFoundException If the resource could not be found
3836
* @throws MethodNotAllowedException If the resource was found but the request method is not allowed

0 commit comments

Comments
 (0)