Skip to content

Commit bc5ac0f

Browse files
committed
Correct spelling and grammar in error messages
1 parent 75326de commit bc5ac0f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/OpenID/AbstractProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,6 @@ protected function createConsumer(array $parameters): Consumer
220220
*/
221221
public function createAccessToken(array $information)
222222
{
223-
throw new Unsupported('It\'s usefull to use this method for OpenID, are you sure?');
223+
throw new Unsupported('It\'s useful to use this method for OpenID, are you sure?');
224224
}
225225
}

src/OpenIDConnect/AccessToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(array $token)
2626
parent::__construct($token);
2727

2828
if (!isset($token['id_token'])) {
29-
throw new InvalidAccessToken('id_token doesnot exists inside AccessToken');
29+
throw new InvalidAccessToken('id_token does not exist inside AccessToken');
3030
}
3131
}
3232

tests/Test/OpenIDConnect/AccessTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testConstructSuccess()
3737
public function testConstructFailedWithNoIdKey()
3838
{
3939
$this->expectException(InvalidAccessToken::class);
40-
$this->expectExceptionMessage('id_token doesnot exists inside AccessToken');
40+
$this->expectExceptionMessage('id_token does not exist inside AccessToken');
4141

4242
$expectedToken = "XSFJSKLFJDLKFJDLSJFLDSJFDSLFSD";
4343
$expectedExpires = time();

0 commit comments

Comments
 (0)