Skip to content

Commit

Permalink
Fix missing closure return type
Browse files Browse the repository at this point in the history
  • Loading branch information
cspray committed Jun 7, 2024
1 parent 9529b52 commit 63dafa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion known-issues.xml
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@
<code><![CDATA[$created]]></code>
</MissingClosureParamType>
<MissingClosureReturnType>
<code><![CDATA[function() use($state, $container, $value) {]]></code>
<code><![CDATA[static fn(Container $container) => $container->call([$target, $delegateInfo['delegateMethod']])]]></code>
</MissingClosureReturnType>
<MixedArgument>
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerFactory/IlluminateContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected function createAnnotatedContainer(ContainerFactoryState $state, Active

$container->when($service)
->needs($paramIdentifier)
->give(function() use($state, $container, $value, $service) {
->give(function() use($state, $container, $value, $service): mixed {
$values = [];
foreach ($state->containerDefinition->getServiceDefinitions() as $serviceDefinition) {
if ($serviceDefinition->isAbstract() || $serviceDefinition->getType()->getName() === $service) {
Expand Down

0 comments on commit 63dafa8

Please sign in to comment.