function __construct(SymbolTable $symbolTable, \Guardrail\Output\OutputInterface $output) { parent::__construct($symbolTable, $output); foreach (get_loaded_extensions() as $extension) { try { $reflectedExtension = new \ReflectionExtension($extension); foreach ($reflectedExtension->getConstants() as $constant => $value) { $this->reflectedConstants[$constant] = true; } } catch (\ReflectionException $e) { } } }
function __construct(SymbolTable $symbolTable, OutputInterface $doc) { parent::__construct($symbolTable, $doc); $this->inferenceEngine = new TypeInferrer($symbolTable); }