1
0
mirror of synced 2024-11-21 21:06:07 +03:00

PHP 8.3 support (#193)

This commit is contained in:
GrishaginEvgeny 2024-07-03 18:14:17 +03:00 committed by GitHub
parent dbf4c9267a
commit cbf5237689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
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:
- uses: actions/checkout@v2
- name: Setup PHP ${{ matrix.php-version }}

View File

@ -16,10 +16,10 @@
"ext-curl": "*",
"ext-json": "*",
"ext-fileinfo": "*",
"symfony/dotenv": "3.4.*"
"symfony/dotenv": "3.4.*|6.4.*"
},
"require-dev": {
"phpunit/phpunit": "6.*",
"phpunit/phpunit": "6.*|8.*",
"squizlabs/php_codesniffer": "3.*"
},
"support": {

View File

@ -171,6 +171,7 @@ class ApiResponse implements \ArrayAccess
* @throws \BadMethodCallException
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
throw new \BadMethodCallException('This activity not allowed');
@ -184,6 +185,7 @@ class ApiResponse implements \ArrayAccess
* @throws \BadMethodCallException
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
throw new \BadMethodCallException('This call not allowed');
@ -196,6 +198,7 @@ class ApiResponse implements \ArrayAccess
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->response[$offset]);
@ -210,6 +213,7 @@ class ApiResponse implements \ArrayAccess
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
if (!isset($this->response[$offset])) {