8000 Merge branch '6.4' into 7.0 · symfony/symfony-docs@8447ed4 · GitHub
[go: up one dir, main page]

Skip to content
Sign in

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8447ed4

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Improve return types
2 parents 685afe1 + 19201ad commit 8447ed4

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

doctrine/associations.rst

+1-1
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

+1-1
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

-2
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

+3-2
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