PHP 8.3 support (#193)
This commit is contained in:
parent
dbf4c9267a
commit
cbf5237689
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4']
|
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup PHP ${{ matrix.php-version }}
|
- name: Setup PHP ${{ matrix.php-version }}
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
"symfony/dotenv": "3.4.*"
|
"symfony/dotenv": "3.4.*|6.4.*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "6.*",
|
"phpunit/phpunit": "6.*|8.*",
|
||||||
"squizlabs/php_codesniffer": "3.*"
|
"squizlabs/php_codesniffer": "3.*"
|
||||||
},
|
},
|
||||||
"support": {
|
"support": {
|
||||||
|
@ -171,6 +171,7 @@ class ApiResponse implements \ArrayAccess
|
|||||||
* @throws \BadMethodCallException
|
* @throws \BadMethodCallException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetSet($offset, $value)
|
public function offsetSet($offset, $value)
|
||||||
{
|
{
|
||||||
throw new \BadMethodCallException('This activity not allowed');
|
throw new \BadMethodCallException('This activity not allowed');
|
||||||
@ -184,6 +185,7 @@ class ApiResponse implements \ArrayAccess
|
|||||||
* @throws \BadMethodCallException
|
* @throws \BadMethodCallException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetUnset($offset)
|
public function offsetUnset($offset)
|
||||||
{
|
{
|
||||||
throw new \BadMethodCallException('This call not allowed');
|
throw new \BadMethodCallException('This call not allowed');
|
||||||
@ -196,6 +198,7 @@ class ApiResponse implements \ArrayAccess
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetExists($offset)
|
public function offsetExists($offset)
|
||||||
{
|
{
|
||||||
return isset($this->response[$offset]);
|
return isset($this->response[$offset]);
|
||||||
@ -210,6 +213,7 @@ class ApiResponse implements \ArrayAccess
|
|||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetGet($offset)
|
public function offsetGet($offset)
|
||||||
{
|
{
|
||||||
if (!isset($this->response[$offset])) {
|
if (!isset($this->response[$offset])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user