Searched refs:options (Results 1 – 15 of 15) sorted by relevance
22 $options = array_flip($argv); variable23 $optionDebug = isset($options['--debug']);24 $optionKeepTmpGrammar = isset($options['--keep-tmp-grammar']);
21 Run `php grammar/rebuildParsers.php` to rebuild the parsers. Additional options:
35 $options = array(); variable48 $options[$name] = $parts[1] ?? true;58 $showProgress = !isset($options['--no-progress']);59 $verbose = isset($options['--verbose']);60 $phpVersion = $options['--php-version'] ?? '8.0';
17 private function createParserAndPrinter(array $options): array { argument18 $parserVersion = $options['parserVersion'] ?? $options['version'] ?? null;19 $printerVersion = $options['version'] ?? null;20 $indent = isset($options['indent']) ? json_decode($options['indent']) : null;
42 * @param array $options Options (see description)44 public function __construct(array $options = []) { argument45 $this->dumpComments = !empty($options['dumpComments']);46 $this->dumpPositions = !empty($options['dumpPositions']);47 $this->dumpOtherAttributes = !empty($options['dumpOtherAttributes']);
192 public function __construct(array $options = []) { argument193 $this->phpVersion = $options['phpVersion'] ?? PhpVersion::fromComponents(7, 4);195 $this->newline = $options['newline'] ?? "\n";201 $options['shortArraySyntax'] ?? $this->phpVersion->supportsShortArraySyntax();205 $this->indent = $indent = $options['indent'] ?? ' ';
37 public function __construct(?ErrorHandler $errorHandler = null, array $options = []) { argument39 $this->preserveOriginalNames = $options['preserveOriginalNames'] ?? false;40 $this->replaceNodes = $options['replaceNodes'] ?? true;
21 * Name resolver options
49 The `createXYZ()` methods optionally accept an array of lexer options. Some use cases that require50 customized lexer options are discussed in the [lexer documentation](component/Lexer.markdown).
130 ### Removed methods, arguments, options132 The following methods, arguments or options have been removed:
205 * Name resolver options
114 …message: "#^Method PhpParser\\\\NodeDumper\\:\\:__construct\\(\\) has parameter \\$options with no…
30 * The `PhpParser\ParserFactory::ONLY_PHP5` and `PREFER_PHP5` options have been removed.495 … been moved from the lexer to the parser. The lexer no longer accepts an options array. The `usedA…
138 * The `Lexer` no longer accepts options. `Lexer\Emulative` only accepts a `PhpVersion`. The1133 * Added `-h` and `--help` options to `php-parse` script.
35 integer should be printed as decimal, hexadecimal, etc). Additionally, it supports three options:
Completed in 49 milliseconds