Skip to content

Commit 16cd56c

Browse files
committed
Fix arraylength problem
1 parent bd2010f commit 16cd56c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Kernel/Mnemonics/_arraylength.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ final class _arraylength implements OperationInterface
99
public function execute(): void
1010
{
1111
$arrayref = $this->popFromOperandStack();
12-
$this->pushToOperandStack(count($arrayref->toArray()));
12+
$this->pushToOperandStack(
13+
count($arrayref)
14+
);
1315
}
1416
}

0 commit comments

Comments
 (0)