Skip to content

Commit

Permalink
Remove useless and broken Parser::document(), use parse() (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Jun 16, 2023
1 parent 5ae87fe commit b305633
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions docs/class-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down Expand Up @@ -938,7 +937,7 @@ Those magic functions allow partial parsing:
*
* @param Source|string $source
*
* @phpstan-param ParserOptions $options
* @phpstan-param ParserOptions $options
*
* @api
*
Expand Down Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/Language/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down Expand Up @@ -180,7 +179,7 @@ class Parser
*
* @param Source|string $source
*
* @phpstan-param ParserOptions $options
* @phpstan-param ParserOptions $options
*
* @api
*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b305633

Please sign in to comment.