Use jetpack autoloader and composer instead of namespace rewrite

This commit is contained in:
David Stone
2025-02-02 01:22:03 -07:00
parent 1e02e42706
commit 71b0e7a455
3479 changed files with 4128 additions and 379511 deletions

View File

@ -0,0 +1,32 @@
--- /dev/null
+++ ../src/Broker/Cookies.php
@@ -43,7 +43,8 @@
/**
* @inheritDoc
*/
- public function offsetSet($name, $value)
+ #[\ReturnTypeWillChange]
+ public function offsetSet($name, $value)
{
$success = setcookie($name, $value, time() + $this->ttl, $this->path, $this->domain, $this->secure, true);
@@ -66,7 +67,8 @@
/**
* @inheritDoc
*/
- public function offsetGet($name)
+ #[\ReturnTypeWillChange]
+ public function offsetGet($name)
{
return $_COOKIE[$name] ?? null;
}
@@ -74,7 +76,8 @@
/**
* @inheritDoc
*/
- public function offsetExists($name)
+ #[\ReturnTypeWillChange]
+ public function offsetExists($name)
{
return isset($_COOKIE[$name]);
}