]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/StaticCookie.php
Merge pull request #12154 from MrPetovan/bug/12084-strip-RTL-override
[friendica.git] / tests / Util / StaticCookie.php
index 6cfbdc3ab7df3d8757cbc9558b47072ffec19dd1..bce9813d9d087f05ce817721f005322ab3652eaa 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -35,22 +35,24 @@ class StaticCookie extends Cookie
 
        /**
         * Send a cookie - protected, internal function for test-mocking possibility
-        * @see Cookie::setCookie()
         *
-        * @link  https://php.net/manual/en/function.setcookie.php
-        *
-        * @param string $name
         * @param string $value  [optional]
         * @param int    $expire [optional]
         * @param bool   $secure [optional]
+        * @return bool
         *
         * @noinspection PhpMissingParentCallCommonInspection
         *
+        * @link         https://php.net/manual/en/function.setcookie.php
+        *
+        * @see          Cookie::setCookie()
         */
-       protected function setCookie(string $name, string $value = null, int $expire = null, bool $secure = null)
+       protected function setCookie(string $value = null, int $expire = null, bool $secure = null): bool
        {
-               self::$_COOKIE[$name] = $value;
+               self::$_COOKIE[self::NAME] = $value;
                self::$_EXPIRE = $expire;
+
+               return true;
        }
 
        public static function clearStatic()