Skip to content

Commit

Permalink
composer update
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Oct 13, 2022
1 parent d792c5e commit 9774c7a
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 41 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,17 +304,17 @@
},
{
"name": "phpstan/phpdoc-parser",
"version": "1.9.0",
"version_normalized": "1.9.0.0",
"version": "1.10.0",
"version_normalized": "1.10.0.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "5f7eb9724b0ae386b922f34b62b3b55fee3b26cd"
"reference": "87fa2d526e56737a2ae8fa201a61b15efae59b8a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/5f7eb9724b0ae386b922f34b62b3b55fee3b26cd",
"reference": "5f7eb9724b0ae386b922f34b62b3b55fee3b26cd",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/87fa2d526e56737a2ae8fa201a61b15efae59b8a",
"reference": "87fa2d526e56737a2ae8fa201a61b15efae59b8a",
"shasum": ""
},
"require": {
Expand All @@ -329,7 +329,7 @@
"phpunit/phpunit": "^9.5",
"symfony/process": "^5.2"
},
"time": "2022-10-06T11:32:36+00:00",
"time": "2022-10-12T19:19:18+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -346,23 +346,23 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.9.0"
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.10.0"
},
"install-path": "../phpstan/phpdoc-parser"
},
{
"name": "phpstan/phpstan",
"version": "1.8.8",
"version_normalized": "1.8.8.0",
"version": "1.8.9",
"version_normalized": "1.8.9.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "08310ce271984587e2a4cda94e1ac66510a6ea07"
"reference": "3a72d9d9f2528fbd50c2d8fcf155fd9f74ade3f2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/08310ce271984587e2a4cda94e1ac66510a6ea07",
"reference": "08310ce271984587e2a4cda94e1ac66510a6ea07",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/3a72d9d9f2528fbd50c2d8fcf155fd9f74ade3f2",
"reference": "3a72d9d9f2528fbd50c2d8fcf155fd9f74ade3f2",
"shasum": ""
},
"require": {
Expand All @@ -371,7 +371,7 @@
"conflict": {
"phpstan/phpstan-shim": "*"
},
"time": "2022-10-06T12:51:57+00:00",
"time": "2022-10-13T13:40:18+00:00",
"bin": [
"phpstan",
"phpstan.phar"
Expand All @@ -394,7 +394,7 @@
],
"support": {
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.8.8"
"source": "https://github.com/phpstan/phpstan/tree/1.8.9"
},
"funding": [
{
Expand Down
16 changes: 8 additions & 8 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '4c71bdc7210648a368647bdec1ae80b1eeacaad5',
'reference' => 'f70c0c943ba2085f9ffbb2a11bf8173ba99faa99',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '4c71bdc7210648a368647bdec1ae80b1eeacaad5',
'reference' => 'f70c0c943ba2085f9ffbb2a11bf8173ba99faa99',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -56,18 +56,18 @@
'dev_requirement' => false,
),
'phpstan/phpdoc-parser' => array(
'pretty_version' => '1.9.0',
'version' => '1.9.0.0',
'reference' => '5f7eb9724b0ae386b922f34b62b3b55fee3b26cd',
'pretty_version' => '1.10.0',
'version' => '1.10.0.0',
'reference' => '87fa2d526e56737a2ae8fa201a61b15efae59b8a',
'type' => 'library',
'install_path' => __DIR__ . '/../phpstan/phpdoc-parser',
'aliases' => array(),
'dev_requirement' => false,
),
'phpstan/phpstan' => array(
'pretty_version' => '1.8.8',
'version' => '1.8.8.0',
'reference' => '08310ce271984587e2a4cda94e1ac66510a6ea07',
'pretty_version' => '1.8.9',
'version' => '1.8.9.0',
'reference' => '3a72d9d9f2528fbd50c2d8fcf155fd9f74ade3f2',
'type' => 'library',
'install_path' => __DIR__ . '/../phpstan/phpstan',
'aliases' => array(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php declare(strict_types = 1);

namespace PHPStan\PhpDocParser\Ast\PhpDoc;

use PHPStan\PhpDocParser\Ast\NodeAttributes;
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
use function trim;

class ParamOutTagValueNode implements PhpDocTagValueNode
{

use NodeAttributes;

/** @var TypeNode */
public $type;

/** @var string */
public $parameterName;

/** @var string (may be empty) */
public $description;

public function __construct(TypeNode $type, string $parameterName, string $description)
{
$this->type = $type;
$this->parameterName = $parameterName;
$this->description = $description;
}

public function __toString(): string
{
return trim("{$this->type} {$this->parameterName} {$this->description}");
}

}
15 changes: 15 additions & 0 deletions vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,21 @@ static function (PhpDocTagValueNode $value): bool {
);
}


/**
* @return ParamOutTagValueNode[]
*/
public function getParamOutTypeTagValues(string $tagName = '@param-out'): array
{
return array_filter(
array_column($this->getTagsByName($tagName), 'value'),
static function (PhpDocTagValueNode $value): bool {
return $value instanceof ParamOutTagValueNode;
}
);
}


public function __toString(): string
{
$children = array_map(
Expand Down
15 changes: 15 additions & 0 deletions vendor/phpstan/phpdoc-parser/src/Parser/PhpDocParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ public function parseTagValue(TokenIterator $tokens, string $tag): Ast\PhpDoc\Ph
$tagValue = $this->parseSelfOutTagValue($tokens);
break;

case '@param-out':
case '@phpstan-param-out':
case '@psalm-param-out':
$tagValue = $this->parseParamOutTagValue($tokens);
break;

default:
$tagValue = new Ast\PhpDoc\GenericTagValueNode($this->parseOptionalDescription($tokens));
break;
Expand Down Expand Up @@ -514,6 +520,15 @@ private function parseSelfOutTagValue(TokenIterator $tokens): Ast\PhpDoc\SelfOut
return new Ast\PhpDoc\SelfOutTagValueNode($type, $description);
}

private function parseParamOutTagValue(TokenIterator $tokens): Ast\PhpDoc\ParamOutTagValueNode
{
$type = $this->typeParser->parse($tokens);
$parameterName = $this->parseRequiredVariableName($tokens);
$description = $this->parseOptionalDescription($tokens);

return new Ast\PhpDoc\ParamOutTagValueNode($type, $parameterName, $description);
}

private function parseOptionalVariableName(TokenIterator $tokens): string
{
if ($tokens->isCurrentTokenType(Lexer::TOKEN_VARIABLE)) {
Expand Down
Binary file modified vendor/phpstan/phpstan/phpstan.phar
Binary file not shown.
26 changes: 13 additions & 13 deletions vendor/phpstan/phpstan/phpstan.phar.asc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmM+z2AACgkQzxoQjQ56
5yDa2A/9FpFMEMPXk3jBDJTJXI8zKkK8lpZc6IFB1wrnabflJ5VuC9brB3cCFyQA
rskm2gS5F6p4C+zz1BAPA1C9l0lrKYx6cx61a1EbaQn+gBP3rghqoIH75hUb/r0Y
xydZ+RIEpuAymV4l80mApZ/f0YFtHCdHAkSr0U1BFvsO73zi9kphsWSD493EtVUe
X8HQaL3zRAt1nmNQ7T3yPEO/a3pyptx/A6acFK73+1ADRRA87kTPyLyxTf3FqUIf
3CSkD5wckhF8rCDSB4I8sU9aN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