diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 843482e..5bd4790 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: [7.1, 7.2, 7.3, 8.0, 8.1] + php: [8.1,8.2,8.3] steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 diff --git a/.travis.yml b/.travis.yml index d56377f..bf32ebe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,9 @@ language: php php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 8.0 - 8.1 + - 8.2 + - 8.3 sudo: false diff --git a/src/Model.php b/src/Model.php index 03bc74a..01f0fb4 100644 --- a/src/Model.php +++ b/src/Model.php @@ -4,8 +4,8 @@ use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Support\Arr; -use Illuminate\Support\Str; use Illuminate\Support\Collection as BaseCollection; +use Illuminate\Support\Str; use JsonSerializable; abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializable @@ -863,7 +863,7 @@ public function __set($key, $value) * @param mixed $offset * @return bool */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->$offset); } @@ -872,9 +872,8 @@ public function offsetExists($offset): bool * Get the value for a given offset. * * @param mixed $offset - * @return mixed - */ - public function offsetGet($offset): mixed + * @return mix + public function offsetGet(mixed $offset): mixed { return $this->$offset; } @@ -886,7 +885,7 @@ public function offsetGet($offset): mixed * @param mixed $value * @return void */ - public function offsetSet($offset, $value): void + public function offsetSet(mixed $offset, mixed $value): void { $this->$offset = $value; } @@ -897,7 +896,7 @@ public function offsetSet($offset, $value): void * @param mixed $offset * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->$offset); }