Skip to content

Commit 93f87fe

Browse files
ACPT-1718
fixing static test failures
1 parent 58e2038 commit 93f87fe

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

lib/internal/Magento/Framework/App/PageCache/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class Kernel
6969
*/
7070
private $identifierForSave;
7171

72+
// phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
7273
private readonly CookieDisablerInterface $cookieDisabler;
7374

7475
/**

lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieDisabler.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77

88
namespace Magento\Framework\Stdlib\Cookie;
99

10-
use Magento\Framework\App\ObjectManager;
11-
use Magento\Framework\Exception\InputException;
1210
use Magento\Framework\Stdlib\CookieDisablerInterface;
13-
use Magento\Framework\Stdlib\CookieManagerInterface;
14-
use Magento\Framework\Phrase;
15-
use Magento\Framework\HTTP\Header as HttpHeader;
16-
use Psr\Log\LoggerInterface;
1711

1812
/**
1913
* Disables sending the cookies that are currently set.
2014
*/
2115
class PhpCookieDisabler implements CookieDisablerInterface
2216
{
17+
/**
18+
* @inheritDoc
19+
*/
2320
public function setCookiesDisabled(bool $disabled) : void
2421
{
2522
if ($disabled && !headers_sent()) {

lib/internal/Magento/Framework/Stdlib/CookieDisablerInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Framework\Stdlib;
89

@@ -11,5 +12,11 @@
1112
*/
1213
interface CookieDisablerInterface
1314
{
15+
/**
16+
* Set Cookies Disabled. If true, cookies won't be sent.
17+
*
18+
* @param bool $disabled
19+
* @return void
20+
*/
1421
public function setCookiesDisabled(bool $disabled) : void;
1522
}

0 commit comments

Comments
 (0)