diff --git a/Library/Optimizers/FunctionCall/CreateInstanceOptimizer.php b/Library/Optimizers/FunctionCall/CreateInstanceOptimizer.php
index <HASH>..<HASH> 100755
--- a/Library/Optimizers/FunctionCall/CreateInstanceOptimizer.php
+++ b/Library/Optimizers/FunctionCall/CreateInstanceOptimizer.php
@@ -66,7 +66,7 @@ class CreateInstanceOptimizer extends OptimizerAbstract
         /**
          * Add the last call status to the current symbol table
          */
-        $call->addCallStatusFlag($compilationContext);
+        $call->addCallStatusFlag($context);
 
         $context->headersManager->add('kernel/object');
Fix wrong compilation context variable in create_instance optimizer