diff --git a/lib/PhpParser/Comment.php b/lib/PhpParser/Comment.php index 2cc491b853..b533c59dd8 100644 --- a/lib/PhpParser/Comment.php +++ b/lib/PhpParser/Comment.php @@ -3,12 +3,19 @@ namespace PhpParser; class Comment implements \JsonSerializable { + /** @var string string */ protected $text; + /** @var int */ protected $startLine; + /** @var int */ protected $startFilePos; + /** @var int */ protected $startTokenPos; + /** @var int */ protected $endLine; + /** @var int */ protected $endFilePos; + /** @var int */ protected $endTokenPos; /** diff --git a/lib/PhpParser/ConstExprEvaluator.php b/lib/PhpParser/ConstExprEvaluator.php index 4ab94995ad..73e59fc516 100644 --- a/lib/PhpParser/ConstExprEvaluator.php +++ b/lib/PhpParser/ConstExprEvaluator.php @@ -27,6 +27,7 @@ * affected by the LC_NUMERIC locale. */ class ConstExprEvaluator { + /** @var callable|null */ private $fallbackEvaluator; /** diff --git a/lib/PhpParser/Error.php b/lib/PhpParser/Error.php index 963f68c54c..443d615288 100644 --- a/lib/PhpParser/Error.php +++ b/lib/PhpParser/Error.php @@ -3,7 +3,9 @@ namespace PhpParser; class Error extends \RuntimeException { + /** @var string */ protected $rawMessage; + /** @var array */ protected $attributes; /** diff --git a/lib/PhpParser/Node.php b/lib/PhpParser/Node.php index 827b3aeb37..43f9deb96b 100644 --- a/lib/PhpParser/Node.php +++ b/lib/PhpParser/Node.php @@ -13,7 +13,7 @@ public function getType(): string; /** * Gets the names of the sub nodes. * - * @return array Names of sub nodes + * @return string[] Names of sub nodes */ public function getSubNodeNames(): array; @@ -137,7 +137,7 @@ public function getAttribute(string $key, $default = null); /** * Returns all the attributes of this node. * - * @return array + * @return array */ public function getAttributes(): array;