Skip to content

Commit e0071b0

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: [Notifier] [Lox24] Fix request body format to JSON string inject the missing logger service fix handling of special "value" constraint option send the recipient phone number as an array [DependencyInjection] Fix ternary in AutowireCallable attribute [Security] Change to `BadCredentialsException` when empty username / password Add a note about the change in the default cache namespace generation to the upgrade guide fix test Fix CS [Messenger] Added postgres asset filter integration test change notifier type for brevo from chatter to texter avoid calling undefined built-in is_*() functions [AssetMapper] fix npm version constraint conversion Bump Symfony version to 7.1.2 Update VERSION for 7.1.1 Update CHANGELOG for 7.1.1
2 parents 87d55ef + 3a064a9 commit e0071b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Attribute/AutowireCallable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545

4646
public function buildDefinition(mixed $value, ?string $type, \ReflectionParameter $parameter): Definition
4747
{
48-
return (new Definition($type = \is_string($this->lazy) ? $this->lazy : ($type ?: 'Closure')))
48+
return (new Definition($type = \is_array($this->lazy) ? current($this->lazy) : ($type ?: 'Closure')))
4949
->setFactory(['Closure', 'fromCallable'])
5050
->setArguments([\is_array($value) ? $value + [1 => '__invoke'] : $value])
5151
->setLazy($this->lazy || 'Closure' !== $type && 'callable' !== (string) $parameter->getType());

0 commit comments

Comments
 (0)