1
0
mirror of synced 2024-11-24 22:36:06 +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 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 }}

View File

@ -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": {

View File

@ -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])) {