Skip to content

Commit aa72907

Browse files
authored
Merge pull request #12 from naomigo/php-8-interface-compatibility
PHP 8 interface compatibility
2 parents c42b8d6 + b0fbc7e commit aa72907

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Smarty.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public function offsetExists($key): bool
154154
*
155155
* @return mixed The key's value, or the default value
156156
*/
157+
#[\ReturnTypeWillChange]
157158
public function offsetGet($key)
158159
{
159160
return $this->defaultVariables[$key];
@@ -165,6 +166,7 @@ public function offsetGet($key)
165166
* @param string $key The data key
166167
* @param mixed $value The data value
167168
*/
169+
#[\ReturnTypeWillChange]
168170
public function offsetSet($key, $value)
169171
{
170172
$this->defaultVariables[$key] = $value;
@@ -175,6 +177,7 @@ public function offsetSet($key, $value)
175177
*
176178
* @param string $key The data key
177179
*/
180+
#[\ReturnTypeWillChange]
178181
public function offsetUnset($key)
179182
{
180183
unset($this->defaultVariables[$key]);

0 commit comments

Comments
 (0)