Skip to content

Commit

Permalink
Change return type in docblock of DocumentFactory
Browse files Browse the repository at this point in the history
This should give less IDE warnings when using the output as repository argument
  • Loading branch information
JaZo committed Jul 10, 2019
1 parent 6b10869 commit ada2e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DocumentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DocumentFactory
/**
* @param \Swis\JsonApi\Client\Interfaces\DataInterface $data
*
* @return \Swis\JsonApi\Client\Interfaces\DocumentInterface
* @return \Swis\JsonApi\Client\ItemDocument|\Swis\JsonApi\Client\CollectionDocument
*/
public function make(DataInterface $data): DocumentInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/DocumentFactoryFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Swis\JsonApi\Client\DocumentFactory;

/**
* @method static \Swis\JsonApi\Client\Interfaces\DocumentInterface make(\Swis\JsonApi\Client\Interfaces\DataInterface $data)
* @method static \Swis\JsonApi\Client\ItemDocument|\Swis\JsonApi\Client\CollectionDocument make(\Swis\JsonApi\Client\Interfaces\DataInterface $data)
*
* @see \Swis\JsonApi\Client\DocumentFactory
*/
Expand Down

0 comments on commit ada2e66

Please sign in to comment.