Skip to content

Commit 45d2bb5

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: send the recipient phone number as an array [DependencyInjection] Fix ternary in AutowireCallable attribute fix test Fix CS [Messenger] Added postgres asset filter integration test [AssetMapper] fix npm version constraint conversion
2 parents cd4f777 + 85cfebb commit 45d2bb5

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
@@ -42,7 +42,7 @@ public function __construct(
4242

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

0 commit comments

Comments
 (0)