Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Release 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Nov 23, 2016
1 parent e923bc5 commit 33ded64
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 6.0.0 (released 2016-11-23)

- Move the exception

## 5.0.0 (released 2016-11-04)

- Drop PHP 5.6 support
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "5.0-dev"
"dev-master": "6.0-dev"
}
},
"minimum-stability": "dev",
Expand Down
26 changes: 0 additions & 26 deletions src/Exceptions/NotFoundException.php

This file was deleted.

5 changes: 2 additions & 3 deletions src/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use Vinkla\Instagram\Exceptions\NotFoundException;

/**
* This is the instagram class.
Expand Down Expand Up @@ -49,7 +48,7 @@ public function __construct(ClientInterface $client = null)
*
* @param string $user
*
* @throws \Vinkla\Instagram\Exceptions\NotFoundException
* @throws \Vinkla\Instagram\InstagramException
*
* @return array
*/
Expand All @@ -62,7 +61,7 @@ public function get(string $user): array

return json_decode((string) $response->getBody(), true)['items'];
} catch (RequestException $e) {
throw new NotFoundException(sprintf('The user [%s] was not found.', $user));
throw new InstagramException(sprintf('The user [%s] was not found.', $user));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@

declare(strict_types=1);

namespace Vinkla\Instagram\Exceptions;
namespace Vinkla\Instagram;

use RuntimeException;

/**
* This is the instagram exception interface.
* This is the instagram exception class.
*
* @author Vincent Klaiber <[email protected]>
*/
interface InstagramExceptionInterface
class InstagramException extends RuntimeException
{
//
}
2 changes: 1 addition & 1 deletion tests/InstagramTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testGet()
}

/**
* @expectedException \Vinkla\Instagram\Exceptions\NotFoundException
* @expectedException \Vinkla\Instagram\InstagramException
*/
public function testNotFound()
{
Expand Down

0 comments on commit 33ded64

Please sign in to comment.