From aacf0815bffda779a813b6405c07d1fc12f1af04 Mon Sep 17 00:00:00 2001 From: Michiel Vugteveen Date: Mon, 27 Dec 2021 19:35:44 +0100 Subject: [PATCH] fix php8.1 errors --- .travis.yml | 3 +++ src/Laracasts/Flash/Message.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4d7ba84..6942c76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ php: - 7.1 - 7.2 - 7.3 + - 7.4 + - 8.0 + - 8.1 - hhvm before_script: diff --git a/src/Laracasts/Flash/Message.php b/src/Laracasts/Flash/Message.php index dafda52..edefebf 100644 --- a/src/Laracasts/Flash/Message.php +++ b/src/Laracasts/Flash/Message.php @@ -73,6 +73,7 @@ public function update($attributes = []) * @param mixed $offset * @return bool */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->$offset); @@ -84,6 +85,7 @@ public function offsetExists($offset) * @param mixed $offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->$offset; @@ -95,6 +97,7 @@ public function offsetGet($offset) * @param mixed $offset * @return void */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->$offset = $value; @@ -106,6 +109,7 @@ public function offsetSet($offset, $value) * @param mixed $offset * @return void */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { //