Skip to content

Commit 0047521

Browse files
committed
Add type into anonymous function
1 parent 42fe161 commit 0047521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/jvm/invoker/Invokable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(JavaClassInvoker $javaClassInvoker, array $methods)
3030

3131
public function __call($name, $arguments)
3232
{
33-
$getCodeAttribute = function ($attributes) {
33+
$getCodeAttribute = function ($attributes): ?CodeAttribute {
3434
foreach ($attributes as $attribute) {
3535
/**
3636
* @var AttributeInfo $attribute

0 commit comments

Comments
 (0)