Skip to content

Commit d4c63aa

Browse files
Make Response compatible with HttpFoundation 5.0 (#37)
1 parent f2479fb commit d4c63aa

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
language: php
2-
dist: precise
2+
dist: trusty
33
php:
4-
- 5.3
5-
- 5.4
6-
- 5.5
7-
- 5.6
8-
- 7.0
9-
- 7.1
104
- 7.2
5+
- 7.3
6+
- 7.4
117
script:
128
- vendor/bin/phpunit
139
before_script:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
],
1414
"homepage": "http://github.com/bshaffer/oauth2-server-httpfoundation-bridge",
1515
"require":{
16-
"php":">=5.3.0",
16+
"php":">=7.2.0",
1717
"bshaffer/oauth2-server-php": ">=0.9",
18-
"symfony/http-foundation": ">=2.1"
18+
"symfony/http-foundation": ">=5.0"
1919
},
2020
"autoload": {
2121
"psr-0": { "OAuth2\\HttpFoundationBridge": "src/" }

src/OAuth2/HttpFoundationBridge/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function setRedirect($statusCode = 302, $url, $state = null, $error = nul
6969
/**
7070
* @param int $statusCode
7171
*/
72-
public function setStatusCode($statusCode, $text = null)
72+
public function setStatusCode($statusCode, $text = null): object
7373
{
7474
return parent::setStatusCode($statusCode);
7575
}

0 commit comments

Comments
 (0)