Skip to content

Commit

Permalink
meta: missing throws doc property in the ReadListener
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrouche Hamza committed Apr 6, 2018
1 parent e9739f0 commit 088c005
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/EventListener/ReadListener.php
Expand Up @@ -17,6 +17,7 @@
use ApiPlatform\Core\DataProvider\ItemDataProviderInterface;
use ApiPlatform\Core\DataProvider\SubresourceDataProviderInterface;
use ApiPlatform\Core\Exception\PropertyNotFoundException;
use ApiPlatform\Core\Exception\ResourceClassNotSupportedException;
use ApiPlatform\Core\Exception\RuntimeException;
use ApiPlatform\Core\Util\RequestAttributesExtractor;
use Symfony\Component\HttpFoundation\Request;
Expand Down Expand Up @@ -47,6 +48,7 @@ public function __construct(CollectionDataProviderInterface $collectionDataProvi
* @param GetResponseEvent $event
*
* @throws NotFoundHttpException
* @throws ResourceClassNotSupportedException
*/
public function onKernelRequest(GetResponseEvent $event)
{
Expand Down Expand Up @@ -77,6 +79,8 @@ public function onKernelRequest(GetResponseEvent $event)
* @param Request $request
* @param array $attributes
*
* @throws ResourceClassNotSupportedException
*
* @return array|\Traversable|null
*/
private function getCollectionData(Request $request, array $attributes)
Expand All @@ -95,6 +99,7 @@ private function getCollectionData(Request $request, array $attributes)
* @param array $attributes
*
* @throws NotFoundHttpException
* @throws ResourceClassNotSupportedException
*
* @return object|null
*/
Expand Down Expand Up @@ -123,6 +128,7 @@ private function getItemData(Request $request, array $attributes)
*
* @throws NotFoundHttpException
* @throws RuntimeException
* @throws ResourceClassNotSupportedException
*
* @return object|null
*/
Expand Down

0 comments on commit 088c005

Please sign in to comment.