📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 16:03:10
📂
/
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
phpstan
/
phpdoc-parser
/
src
/
Ast
/
ConstExpr
✏️
Editing: ConstExprArrayNode.php
<?php declare(strict_types = 1); namespace PHPStan\PhpDocParser\Ast\ConstExpr; use PHPStan\PhpDocParser\Ast\NodeAttributes; use function implode; class ConstExprArrayNode implements ConstExprNode { use NodeAttributes; /** @var ConstExprArrayItemNode[] */ public array $items; /** * @param ConstExprArrayItemNode[] $items */ public function __construct(array $items) { $this->items = $items; } public function __toString(): string { return '[' . implode(', ', $this->items) . ']'; } /** * @param array<string, mixed> $properties */ public static function __set_state(array $properties): self { $instance = new self($properties['items']); if (isset($properties['attributes'])) { foreach ($properties['attributes'] as $key => $value) { $instance->setAttribute($key, $value); } } return $instance; } }
💾 Save Changes
❌ Cancel