Skip to content

Commit b1d4ffc

Browse files
authored
Use self instead of static
1 parent 2623f2b commit b1d4ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/HTTP/Cookie/Cookie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Cookie implements ArrayAccess, CloneableCookieInterface
126126
*/
127127
public static function setDefaults($config = [])
128128
{
129-
$oldDefaults = static::$defaults;
129+
$oldDefaults = self::$defaults;
130130
$newDefaults = [];
131131

132132
if ($config instanceof App)
@@ -149,7 +149,7 @@ public static function setDefaults($config = [])
149149

150150
// This array union ensures that even if passed `$config`
151151
// is not `App` or `array`, no empty defaults will occur.
152-
static::$defaults = $newDefaults + $oldDefaults;
152+
self::$defaults = $newDefaults + $oldDefaults;
153153

154154
return $oldDefaults;
155155
}

0 commit comments

Comments
 (0)