BossBey File Manager
PHP:
7.4.33
OS:
Linux
User:
root
Root
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
phpstan
/
phpdoc-parser
/
src
/
Ast
/
Type
📤 Upload
📝 New File
📁 New Folder
Close
Editing: ArrayShapeUnsealedTypeNode.php
<?php declare(strict_types = 1); namespace PHPStan\PhpDocParser\Ast\Type; use PHPStan\PhpDocParser\Ast\Node; use PHPStan\PhpDocParser\Ast\NodeAttributes; use function sprintf; class ArrayShapeUnsealedTypeNode implements Node { use NodeAttributes; public TypeNode $valueType; public ?TypeNode $keyType = null; public function __construct(TypeNode $valueType, ?TypeNode $keyType) { $this->valueType = $valueType; $this->keyType = $keyType; } public function __toString(): string { if ($this->keyType !== null) { return sprintf('<%s, %s>', $this->keyType, $this->valueType); } return sprintf('<%s>', $this->valueType); } }
Save
Cancel