Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions stubs/GraphQL/Error/ParseError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that is required to add a copyright notice here:

/*
 * This file is part of the GraphQL parser extension.
 *
 * (c) Diego Saint Esteben <diego@saintesteben.me>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace GraphQL\Error;

class ParseError extends \Exception {}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, ParseError extends from RuntimeException

15 changes: 15 additions & 0 deletions stubs/GraphQL/Parser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, (probably) missing copyright notice.

namespace GraphQL;

class Parser
{
/**
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a simple description for this method?

* @param string $input
*
* @return array
*/
public function parse(string $input): array {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't works for versions before 7.0 right? Can you remove the type hint and the return type?

return [];
}
}