mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-12 09:29:47 +01:00
a6846e3b71
The parser will now always generate Identifier nodes (for non-namespaced identifiers). This obsoletes the useIdentifierNodes parser option. Node constructors still accepts strings and will implicitly create an Identifier wrapper. Identifier implement __toString(), so that outside of strict-mode many things continue to work without changes.
14 lines
241 B
PHP
14 lines
241 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Stmt;
|
|
|
|
use PhpParser\Node;
|
|
|
|
abstract class TraitUseAdaptation extends Node\Stmt
|
|
{
|
|
/** @var Node\Name|null Trait name */
|
|
public $trait;
|
|
/** @var Node\Identifier Method name */
|
|
public $method;
|
|
}
|