8000 Merge branch '6.3' into 6.4 · symfony/symfony-docs@19201ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 19201ad

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Improve return types
2 parents a45adf1 + bd9e6d2 commit 19201ad

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

doctrine/associations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class that will hold these objects:
228228
}
229229
230230
/**
231-
* @return Collection|Product[]
231+
* @return Collection<int, Product>
232232
*/
233233
public function getProducts(): Collection
234234
{

messenger/handler_results.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
9090
*
9191
* @return mixed The handler returned value
9292
*/
93-
public function query($query)
93+
public function query($query): mixed
9494
{
9595
return $this->handle($query);
9696
}

security/user_providers.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ command will generate a nice skeleton to get you started::
311311
*
312312
* If your firewall is "stateless: true" (for a pure API), this
313313
* method is not called.
314-
*
315-
* @return UserInterface
316314
*/
317315
public function refreshUser(UserInterface $user): UserInterface
318316
{

service_container/injection_types.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ In order to use this type of injection, don't forget to configure it:
180180
.. note::
181181

182182
If you decide to use autowiring, this type of injection requires
183-
that you add a ``@return static`` docblock in order for the container
184-
to be capable of registering the method.
183+
that you add a ``@return static`` docblock or the ``static`` return
184+
type in order for the container to be capable of registering
185+
the method.
185186

186187
This approach is useful if you need to configure your service according to your needs,
187188
so, here's the advantages of immutable-setters:

0 commit comments

Comments
 (0)
0