Skip to content

Commit 2b8c6eb

Browse files
committed
PHP 7.0 support
1 parent e4205ea commit 2b8c6eb

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
## 2.0.5 - 2.0.6
1+
## 2.0.8
2+
PHP 7.0 support
3+
4+
## 2.0.5 - 2.0.7
25
Documentation updates
36

47
## 2.0.4

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
],
3232
"require": {
33-
"php": "^7.1",
33+
"php": "^7.0",
3434
"league/oauth2-client": "^2.4"
3535
},
3636
"require-dev": {

src/Provider/AppIdProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AppIdProvider extends AbstractProvider
2121
{
2222
use BearerAuthorizationTrait;
2323

24-
public const IDP_SAML = 'saml';
24+
const IDP_SAML = 'saml';
2525

2626
/** @var string */
2727
protected $baseAuthUri;
@@ -179,9 +179,9 @@ public function getIdp(): string
179179

180180
/**
181181
* @author Dzianis Kotau <jampire.blr@gmail.com>
182-
* @return string
182+
* @return string|null
183183
*/
184-
public function getRedirectRoute(): ?string
184+
public function getRedirectRoute()
185185
{
186186
return $this->redirectRoute;
187187
}
@@ -208,7 +208,7 @@ protected function getDefaultScopes(): array
208208
* @return void
209209
* @throws IdentityProviderException
210210
*/
211-
protected function checkResponse(ResponseInterface $response, $data): void
211+
protected function checkResponse(ResponseInterface $response, $data)
212212
{
213213
if (!empty($data['error'])) {
214214
$error = $data['error'] . ': ' . $data['error_description'];

0 commit comments

Comments
 (0)