8000 [6.4] Fix various `@psalm-return` annotations · symfony/symfony@7c0b00c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c0b00c

Browse files
[6.4] Fix various @psalm-return annotations
1 parent 1eaefe3 commit 7c0b00c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Symfony/Component/Console/Completion/CompletionInput.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ public function bind(InputDefinition $definition): void
141141
* TYPE_OPTION_NAME when completing the name of an input option
142142
* TYPE_NONE when nothing should be completed
143143
*
144-
* @return string One of self::TYPE_* constants. TYPE_OPTION_NAME and TYPE_NONE are already implemented by the Console component
144+
* TYPE_OPTION_NAME and TYPE_NONE are already implemented by the Console component.
145+
*
146+
* @return self::TYPE_*
145147
*/
146148
public function getCompletionType(): string
147149
{

src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function resolve()
176176
* @param TValue $value
177177
* @param array $resolving An array of keys that are being resolved (used internally to detect circular references)
178178
*
179-
* @return (TValue is scalar ? array|scalar : array<array|scalar>)
179+
* @psalm-return (TValue is scalar ? array|scalar : array<array|scalar>)
180180
*
181181
* @throws ParameterNotFoundException if a placeholder references a parameter that does not exist
182182
* @throws ParameterCircularReferenceException if a circular reference if detected

0 commit comments

Comments
 (0)
0