Skip to content

Commit 0b15090

Browse files
committed
ACPT-1666: Fix race conditions in _resetState methods
-- fix test failures
1 parent 7c6e70d commit 0b15090

File tree

26 files changed

+105
-51
lines changed

26 files changed

+105
-51
lines changed

app/code/Magento/BundleGraphQl/Model/Cart/BuyRequest/BundleDataProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ class BundleDataProvider implements BuyRequestDataProviderInterface
1919
{
2020
/**
2121
* @var ArrayManagerFactory
22-
*
23-
* @SuppressWarnings(PHPCS)
22+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2423
*/
2524
private readonly ArrayManagerFactory $arrayManagerFactory;
2625

2726
/**
2827
* @param ArrayManager $arrayManager @deprecated @see $arrayManagerFactory
2928
* @param ArrayManagerFactory|null $arrayManagerFactory
29+
*
30+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3031
*/
3132
public function __construct(
3233
ArrayManager $arrayManager,

app/code/Magento/Catalog/Model/Product/Type.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
*/
2525
class Type implements OptionSourceInterface, ResetAfterRequestInterface
2626
{
27-
const TYPE_SIMPLE = 'simple';
27+
public const TYPE_SIMPLE = 'simple';
2828

29-
const TYPE_BUNDLE = 'bundle';
29+
public const TYPE_BUNDLE = 'bundle';
3030

31-
const TYPE_VIRTUAL = 'virtual';
31+
public const TYPE_VIRTUAL = 'virtual';
3232

33-
const DEFAULT_TYPE = 'simple';
33+
public const DEFAULT_TYPE = 'simple';
3434

35-
const DEFAULT_TYPE_MODEL = Simple::class;
35+
public const DEFAULT_TYPE_MODEL = Simple::class;
3636

37-
const DEFAULT_PRICE_MODEL = Price::class;
37+
public const DEFAULT_PRICE_MODEL = Price::class;
3838

3939
/**
4040
* @var ConfigInterface
@@ -56,8 +56,6 @@ class Type implements OptionSourceInterface, ResetAfterRequestInterface
5656
protected $_compositeTypes;
5757

5858
/**
59-
* Price models
60-
*
6159
* @var array|null|Price
6260
*/
6361
protected $_priceModels;

app/code/Magento/ConfigurableProductGraphQl/Model/Cart/BuyRequest/SuperAttributeDataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SuperAttributeDataProvider implements BuyRequestDataProviderInterface
3131
/**
3232
* @var ArrayManagerFactory
3333
*
34-
* @SuppressWarnings(PHPCS)
34+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
3535
*/
3636
private readonly ArrayManagerFactory $arrayManagerFactory;
3737

app/code/Magento/Integration/Model/CustomUserContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class CustomUserContext implements UserContextInterface
1515
/**
1616
* @var int|null
1717
*
18-
* @SuppressWarnings(PHPCS)
18+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
1919
*/
2020
private readonly ?int $userId;
2121

2222
/**
2323
* @var int|null
2424
*
25-
* @SuppressWarnings(PHPCS)
25+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2626
*/
2727
private readonly ?int $userType;
2828

app/code/Magento/JwtUserToken/Model/Data/JwtUserContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class JwtUserContext implements UserContextInterface
1515
/**
1616
* @var int|null
1717
*
18-
* @SuppressWarnings(PHPCS)
18+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
1919
*/
2020
private readonly ?int $userId;
2121

2222
/**
2323
* @var int|null
2424
*
25-
* @SuppressWarnings(PHPCS)
25+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2626
*/
2727
private readonly ?int $userType;
2828

app/code/Magento/PaypalGraphQl/Model/PayflowProAdditionalDataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class PayflowProAdditionalDataProvider implements AdditionalDataProviderInterfac
1818
{
1919
/**
2020
* @param ArrayManager $arrayManager
21+
*
22+
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
2123
*/
2224
public function __construct(ArrayManager $arrayManager)
2325
{

app/code/Magento/PaypalGraphQl/Model/PayflowProCcVaultAdditionalDataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class PayflowProCcVaultAdditionalDataProvider implements AdditionalDataProviderI
1919

2020
/**
2121
* @param ArrayManager $arrayManager
22+
*
23+
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
2224
*/
2325
public function __construct(ArrayManager $arrayManager)
2426
{

app/code/Magento/PaypalGraphQl/Model/Plugin/Resolver/SetPaymentMethodOnCart.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class SetPaymentMethodOnCart
4141

4242
/**
4343
* @var ArrayManagerFactory
44+
*
45+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
4446
*/
4547
private readonly ArrayManagerFactory $arrayManagerFactory;
4648

app/code/Magento/QuoteGraphQl/Model/Cart/BuyRequest/CustomizableOptionsDataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CustomizableOptionsDataProvider implements BuyRequestDataProviderInterface
1919
/**
2020
* @var ArrayManagerFactory
2121
*
22-
* @SuppressWarnings(PHPCS)
22+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2323
*/
2424
private readonly ArrayManagerFactory $arrayManagerFactory;
2525

app/code/Magento/QuoteGraphQl/Model/Cart/BuyRequest/QuantityDataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class QuantityDataProvider implements BuyRequestDataProviderInterface
2020
/**
2121
* @var ArrayManagerFactory
2222
*
23-
* @SuppressWarnings(PHPCS)
23+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2424
*/
2525
private readonly ArrayManagerFactory $arrayManagerFactory;
2626

0 commit comments

Comments
 (0)