diff --git a/CHANGELOG.md b/CHANGELOG.md index 93d19b5aa..035d6f0ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co ## Unreleased +## v15.5.1 + +### Fixed + +- Remove useless and broken `Parser::document()`, use `parse()` + ## v15.5.0 ### Added diff --git a/docs/class-reference.md b/docs/class-reference.md index ee08e66ab..374cc9cc1 100644 --- a/docs/class-reference.md +++ b/docs/class-reference.md @@ -862,7 +862,6 @@ future.) Those magic functions allow partial parsing: @method static NameNode name(Source|string $source, bool[] $options = []) -@method static DocumentNode document(Source|string $source, bool[] $options = []) @method static ExecutableDefinitionNode|TypeSystemDefinitionNode definition(Source|string $source, bool[] $options = []) @method static ExecutableDefinitionNode executableDefinition(Source|string $source, bool[] $options = []) @method static OperationDefinitionNode operationDefinition(Source|string $source, bool[] $options = []) @@ -938,7 +937,7 @@ Those magic functions allow partial parsing: * * @param Source|string $source * - * @phpstan-param ParserOptions $options + * @phpstan-param ParserOptions $options * * @api * @@ -986,7 +985,7 @@ static function parseValue($source, array $options = []) * * @param Source|string $source * - * @phpstan-param ParserOptions $options + * @phpstan-param ParserOptions $options * * @throws \JsonException * @throws SyntaxError diff --git a/src/Language/Parser.php b/src/Language/Parser.php index 4e3b756c7..2ce56dcde 100644 --- a/src/Language/Parser.php +++ b/src/Language/Parser.php @@ -105,7 +105,6 @@ * Those magic functions allow partial parsing: * * @method static NameNode name(Source|string $source, bool[] $options = []) - * @method static DocumentNode document(Source|string $source, bool[] $options = []) * @method static ExecutableDefinitionNode|TypeSystemDefinitionNode definition(Source|string $source, bool[] $options = []) * @method static ExecutableDefinitionNode executableDefinition(Source|string $source, bool[] $options = []) * @method static OperationDefinitionNode operationDefinition(Source|string $source, bool[] $options = []) @@ -180,7 +179,7 @@ class Parser * * @param Source|string $source * - * @phpstan-param ParserOptions $options + * @phpstan-param ParserOptions $options * * @api * @@ -235,7 +234,7 @@ public static function parseValue($source, array $options = []) * * @param Source|string $source * - * @phpstan-param ParserOptions $options + * @phpstan-param ParserOptions $options * * @throws \JsonException * @throws SyntaxError