File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Core/JVM/Invoker/Extended Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -233,12 +233,7 @@ function ($argument) {
233233 /**
234234 * @var Accumulator|ConstantPool|OperationCodeInterface $executor
235235 */
236- $ executor = $ operationCache ->fetchOrPush (
237- $ fullName ,
238- function () use ($ fullName ) {
239- return new $ fullName ();
240- }
241- );
236+ $ executor = new $ fullName ();
242237
243238 $ beforeTrigger = $ this ->options ['operations ' ]['injections ' ]['before ' ] ?? GlobalOptions::get ('operations.injections.before ' );
244239 if (is_callable ($ beforeTrigger )) {
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ public function offsetExists($offset)
4040
4141 public function offsetGet ($ offset )
4242 {
43+ if (!$ this ->offsetExists ($ offset )) {
44+ throw new OperationException ('Does not exist an operand. ' );
45+ }
4346 return $ this ->operands [$ offset ][0 ];
4447 }
4548
You can’t perform that action at this time.
0 commit comments