Searched refs:with (Results 1 – 25 of 34) sorted by relevance
12
30 ->with(new Stmt\TraitUseAdaptation\Alias(null, 'foo', null, 'bar'))31 ->with((new TraitUseAdaptation(null, 'test'))->as('baz'))48 ->with(new Stmt\Echo_([]))
4 …er\\\\Builder\\\\ClassConst\\:\\:__construct\\(\\) has parameter \\$value with no value type speci…9 …arser\\\\Builder\\\\ClassConst\\:\\:addConst\\(\\) has parameter \\$value with no value type speci…14 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:args\\(\\) has parameter \\$args with no value…19 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:attribute\\(\\) has parameter \\$args with no …24 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:classConst\\(\\) has parameter \\$value with n…29 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:funcCall\\(\\) has parameter \\$args with no v…34 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:methodCall\\(\\) has parameter \\$args with no…39 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:new\\(\\) has parameter \\$args with no value …49 …message: "#^Method PhpParser\\\\BuilderFactory\\:\\:val\\(\\) has parameter \\$value with no value…89 message: "#^Call to function assert\\(\\) with false will always evaluate to false\\.$#"[all …]
6 Redistribution and use in source and binary forms, with or without14 and/or other materials provided with the distribution.
225 sequence with a following `\n`.306 to avoid a dynamic property deprecation warning with PHP 8.2.412 * Fixed check for token emulation conflicts with other libraries.472 * Emit parentheses for class constant fetch with complex left-hand-side.575 behavior with the upcoming PHP 7.3.10 release.587 * Fixed compatibility with PHP 7.4.832 * Improve compatibility with PHP-Scoper. (#477)948 * Added `php-parse --with-positions` option, which dumps nodes with position information.1010 used. `Name::concat()` now also supports concatenation with `null`.1055 with a single `type` subnode.[all …]
11 The library has been moved to use namespaces with the `PhpParser` vendor prefix. However, the old n…32 Due to conflicts with reserved keywords, some class names now end with an underscore, e.g. `PHPPars…
24 * The `TryCatch` subnode `finallyStmts` has been replaced with a `finally` subnode that holds an80 The PHP 7 parser is a superset of the PHP 5 parser, with the exceptions that `=& new` and85 It is possible to restore the precise previous behavior with the following code:118 If you use a custom lexer with overridden `startLexing()` method, it needs to be changed to accept136 Use `Name::concat()` in combination with `Name::slice()` instead.160 used. `Name::concat()` now also supports concatenation with `null`.
1 # https://help.github.com/en/categories/automating-your-workflow-with-github-actions10 name: "PHP 7.4 Unit Tests (with coverage)"16 with:48 with:65 with:82 with:99 with:116 with:
7 echo 'First case, with a break';24 echo 'First case, with a break';
1 Rewrite string with variable interpolation
1 Nop statement with comment at end (#513)
11 Cannot mix bracketed namespace declarations with unbracketed namespace declarations from 4:1 to 4:958 Cannot mix bracketed namespace declarations with unbracketed namespace declarations from 6:1 to 6:9
11 Running PHP with Xdebug adds a lot of overhead, especially for code that performs many method calls.20 you may want to consider automatically restarting PHP with Xdebug unloaded. The24 If you do run with Xdebug, you may need to increase the `xdebug.max_nesting_level` option to a43 is not reused. (Currently two objects with particularly expensive setup are parsers and pretty
12 The library comes with a number of builders, which allow creating node trees using a fluent44 ->with($factory->traitUseAdaptation('foo')->as('bar'))45 ->with($factory->traitUseAdaptation('AnotherTrait', 'baz')->as('test'))46 ->with($factory->traitUseAdaptation('AnotherTrait', 'func')->insteadof('SecondTrait')))80 This will produce the following output with the standard pretty printer:
4 The most common way to work with the AST is by using a node traverser and one or more node visitors.39 Each node visitor implements an interface with following four methods:141 with `!!($a && $b)`. This will continue until PHP hits the memory limit.160 generally want to remove it together with a surrounding expression statement:178 Another way to remove nodes is to replace them with `null`. For example, all `else` statements could192 Next to removing nodes, it is also possible to replace one node with multiple nodes. This234 after finding it. For example, if you are looking for the node of a class with a certain name (and256 A single traverser can be used with multiple visitors:265 It is important to understand that if a traverser is run with multiple visitors, the visitors will290 visitors, with the `leaveNode()` calls happening in the reverse order of the `enterNode()` calls.[all …]
52 for this has been removed with the introduction of flexible heredoc/nowdoc strings.53 * For PHP >= 7.3, heredoc/nowdoc strings are indented just like regular code. This was allowed with63 default pretty printer with an existing library for code reformatting, such as
46 public function with($adaptation) { function in PhpParser\\Builder\\TraitUse
1 Yield with unary operator argument
16 // yield in language constructs with their own parentheses138 0: // yield in language constructs with their own parentheses
10 application dealing with code programmatically. A parser constructs an [Abstract Syntax Tree][1]11 (AST) of the code and thus allows dealing with it in an abstract and robust way.16 a file. On the other hand, the token stream is much harder to deal with for more complex analysis.29 The parser supports parsing PHP 7 and PHP 8 code, with the following exceptions:35 PHP-Parser 4.x had full support for parsing PHP 5. PHP-Parser 5.x has only limited support, with the76 with the values `Hi` and `World`.
154 You can also use the `php-parse` script to obtain such a node dump by calling it either with a file174 reserved keyword. Many node class names in this library have a trailing `_` to avoid clashing with178 with them easier they are grouped into three categories:203 without the `PhpParser\Node\` prefix and `\` replaced with `_`. It also does not contain a trailing206 It is possible to associate custom metadata with a node using the `setAttribute()` method. This data340 traverser was called with. This method can be used for resetting values before traversal or360 * `NodeVisitor::REPLACE_WITH_NULL`, in which case the current node will be replaced with `null`.374 helps you work with namespaced code by trying to resolve most names to fully qualified ones.403 We start off with the following base code:450 Now lets start with the main code, the `NamespaceConverter`. One thing it needs to do[all …]
1 Try/catch with multiple classes
1 Array with empty elements
1 List destructing with keys
288 ->with($factory->traitUseAdaptation('foo')->as('bar'))289 ->with($factory->traitUseAdaptation('AnotherTrait', 'baz')->as('test'))290 … ->with($factory->traitUseAdaptation('AnotherTrait', 'func')->insteadof('SecondTrait')))
11 The `.y` file is a normal grammar in `kmyacc` (`yacc`) style, with some transformations
Completed in 44 milliseconds