]> git.agnieray.net Git - galette.git/blob - patches/smarty-view-php81.patch
Patch 3rd party libs for PHP 8.1
[galette.git] / patches / smarty-view-php81.patch
1 diff -up vendor/mathmarques/smarty-view/src/Smarty.php.patch vendor/mathmarques/smarty-view/src/Smarty.php
2 --- vendor/mathmarques/smarty-view/src/Smarty.php.patch 2021-09-24 12:02:58.287223301 +0200
3 +++ vendor/mathmarques/smarty-view/src/Smarty.php 2021-09-25 10:35:50.856555954 +0200
4 @@ -153,7 +153,7 @@ class Smarty implements \ArrayAccess
5 *
6 * @return bool
7 */
8 - public function offsetExists($key)
9 + public function offsetExists($key): bool
10 {
11 return array_key_exists($key, $this->defaultVariables);
12 }
13 @@ -165,7 +165,7 @@ class Smarty implements \ArrayAccess
14 *
15 * @return mixed The key's value, or the default value
16 */
17 - public function offsetGet($key)
18 + public function offsetGet($key): mixed
19 {
20 return $this->defaultVariables[$key];
21 }
22 @@ -176,7 +176,7 @@ class Smarty implements \ArrayAccess
23 * @param string $key The data key
24 * @param mixed $value The data value
25 */
26 - public function offsetSet($key, $value)
27 + public function offsetSet($key, $value): void
28 {
29 $this->defaultVariables[$key] = $value;
30 }
31 @@ -186,7 +186,7 @@ class Smarty implements \ArrayAccess
32 *
33 * @param string $key The data key
34 */
35 - public function offsetUnset($key)
36 + public function offsetUnset($key): void
37 {
38 unset($this->defaultVariables[$key]);
39 }