Skip to content

Commit f41a975

Browse files
committed
Fix constant pool
1 parent 0d81009 commit f41a975

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Core/JVM/Invoker/Invokable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ function ($item) {
298298
*/
299299
$executor = OperationCache::fetchOrPush(
300300
$fullName,
301-
function () use ($fullName, &$currentConstantPool) {
302-
return (new $fullName())
303-
->setConstantPool($currentConstantPool);
301+
function () use ($fullName) {
302+
return new $fullName();
304303
}
305304
);
306305
$returnValue = $executor
306+
->setConstantPool($currentConstantPool)
307307
->setParameters(
308308
$method->getAttributes(),
309309
$this->javaClassInvoker,

src/Kernel/Core/Accumulator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function setParameters(
3737
\PHPJava\Core\JVM\Stream\BinaryReader $reader,
3838
array &$localStorage,
3939
array &$stacks,
40-
int &$pointer
40+
int $pointer
4141
): self {
4242
$this->attributes = &$attributes;
4343
$this->javaClassInvoker = &$javaClassInvoker;
@@ -46,7 +46,7 @@ public function setParameters(
4646
$this->reader = &$reader;
4747
$this->localStorage = &$localStorage;
4848
$this->stacks = &$stacks;
49-
$this->pointer = &$pointer;
49+
$this->pointer = $pointer;
5050
return $this;
5151
}
5252

0 commit comments

Comments
 (0)