function Node::hasAttribute
Same name in this branch
- 11.1.x vendor/phpstan/phpdoc-parser/src/Ast/Node.php \PHPStan\PhpDocParser\Ast\Node::hasAttribute()
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node.php \PhpParser\Node::hasAttribute()
5 calls to Node::hasAttribute()
- AbstractExpression::hasExplicitParentheses in vendor/
twig/ twig/ src/ Node/ Expression/ AbstractExpression.php - AbstractExpression::isGenerator in vendor/
twig/ twig/ src/ Node/ Expression/ AbstractExpression.php - FilterExpression::compile in vendor/
twig/ twig/ src/ Node/ Expression/ FilterExpression.php - FunctionExpression::compile in vendor/
twig/ twig/ src/ Node/ Expression/ FunctionExpression.php - TestExpression::compile in vendor/
twig/ twig/ src/ Node/ Expression/ TestExpression.php
File
-
vendor/
twig/ twig/ src/ Node/ Node.php, line 140
Class
- Node
- Represents a node in the AST.
Namespace
Twig\NodeCode
public function hasAttribute(string $name) : bool {
return \array_key_exists($name, $this->attributes);
}