Skip to content

Commit 88016e8

Browse files
committed
Update PHPStan config and baseline
1 parent b6217fe commit 88016e8

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

phpstan-baseline.neon

+24-19
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ parameters:
1212

1313
-
1414
message: "#^Class AbstractAssetManager is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
15-
count: 4
15+
count: 8
1616
path: src/Core/Addon/Theme/Theme.php
1717

1818
-
@@ -307,7 +307,7 @@ parameters:
307307

308308
-
309309
message: "#^Class Mail is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
310-
count: 1
310+
count: 2
311311
path: src/Core/Domain/CustomerService/CommandHandler/AddOrderCustomerMessageHandler.php
312312

313313
-
@@ -597,7 +597,7 @@ parameters:
597597

598598
-
599599
message: "#^Class CustomerThread is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
600-
count: 2
600+
count: 3
601601
path: src/Core/Domain/CustomerService/Repository/CustomerThreadRepository.php
602602

603603
-
@@ -612,7 +612,7 @@ parameters:
612612

613613
-
614614
message: "#^Class Store is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
615-
count: 3
615+
count: 4
616616
path: src/Core/Domain/Store/Repository/StoreRepository.php
617617

618618
-
@@ -637,7 +637,7 @@ parameters:
637637

638638
-
639639
message: "#^Class OrderReturn is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
640-
count: 1
640+
count: 2
641641
path: src/Core/Form/IdentifiableObject/DataHandler/OrderReturnFormDataHandler.php
642642

643643
-
@@ -722,7 +722,7 @@ parameters:
722722

723723
-
724724
message: "#^Class Db is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
725-
count: 2
725+
count: 3
726726
path: src/Core/Module/HookRepository.php
727727

728728
-
@@ -792,7 +792,7 @@ parameters:
792792

793793
-
794794
message: "#^Class Db is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
795-
count: 1
795+
count: 2
796796
path: src/Core/Repository/AbstractMultiShopObjectModelRepository.php
797797

798798
-
@@ -862,7 +862,7 @@ parameters:
862862

863863
-
864864
message: "#^Class Shop is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
865-
count: 9
865+
count: 17
866866
path: src/Core/Shop/LogoUploader.php
867867

868868
-
@@ -907,7 +907,7 @@ parameters:
907907

908908
-
909909
message: "#^Class Pack is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
910-
count: 11
910+
count: 22
911911
path: src/Core/Stock/StockManager.php
912912

913913
-
@@ -1017,7 +1017,7 @@ parameters:
10171017

10181018
-
10191019
message: "#^Class ImageManager is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1020-
count: 1
1020+
count: 2
10211021
path: src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/EmployeeController.php
10221022

10231023
-
@@ -1027,7 +1027,7 @@ parameters:
10271027

10281028
-
10291029
message: "#^Class ImageManager is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1030-
count: 1
1030+
count: 2
10311031
path: src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/ProfileController.php
10321032

10331033
-
@@ -1067,7 +1067,7 @@ parameters:
10671067

10681068
-
10691069
message: "#^Class Dispatcher is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1070-
count: 1
1070+
count: 2
10711071
path: src/PrestaShopBundle/Controller/Admin/LegacyController.php
10721072

10731073
-
@@ -1117,7 +1117,7 @@ parameters:
11171117

11181118
-
11191119
message: "#^Class ImageManager is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1120-
count: 1
1120+
count: 2
11211121
path: src/PrestaShopBundle/Controller/Admin/Sell/Catalog/CategoryController.php
11221122

11231123
-
@@ -1152,7 +1152,7 @@ parameters:
11521152

11531153
-
11541154
message: "#^Class CartRule is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1155-
count: 1
1155+
count: 2
11561156
path: src/PrestaShopBundle/Controller/Admin/Sell/Order/CartController.php
11571157

11581158
-
@@ -1237,12 +1237,12 @@ parameters:
12371237

12381238
-
12391239
message: "#^Class Product is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1240-
count: 1
1240+
count: 2
12411241
path: src/PrestaShopBundle/Entity/Repository/StockManagementRepository.php
12421242

12431243
-
12441244
message: "#^Class Shop is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1245-
count: 2
1245+
count: 3
12461246
path: src/PrestaShopBundle/Entity/Repository/StockManagementRepository.php
12471247

12481248
-
@@ -1317,7 +1317,7 @@ parameters:
13171317

13181318
-
13191319
message: "#^Class Validate is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1320-
count: 1
1320+
count: 2
13211321
path: src/PrestaShopBundle/Form/Admin/Sell/Customer/CustomerType.php
13221322

13231323
-
@@ -1372,7 +1372,7 @@ parameters:
13721372

13731373
-
13741374
message: "#^Class PrestaShopLogger is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1375-
count: 4
1375+
count: 8
13761376
path: src/PrestaShopBundle/Form/Admin/Type/LogSeverityChoiceType.php
13771377

13781378
-
@@ -1382,7 +1382,7 @@ parameters:
13821382

13831383
-
13841384
message: "#^Class Dispatcher is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1385-
count: 1
1385+
count: 2
13861386
path: src/PrestaShopBundle/Routing/LegacyRouterChecker.php
13871387

13881388
-
@@ -1420,6 +1420,11 @@ parameters:
14201420
count: 1
14211421
path: src/PrestaShopBundle/Twig/Component/AbstractMultistoreHeader.php
14221422

1423+
-
1424+
message: "#^Class Shop is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1425+
count: 2
1426+
path: src/PrestaShopBundle/Twig/Component/HeadTag.php
1427+
14231428
-
14241429
message: "#^Namespace AdminController is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
14251430
count: 1

phpstan.neon.dist

+1
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,4 @@ parameters:
8383
- _PS_API_IN_USE_
8484
- _PS_ALLOW_MULTI_STATEMENTS_QUERIES_
8585
- _PS_DISPLAY_ONLY_ERRORS_
86+
treatPhpDocTypesAsCertain: false

0 commit comments

Comments
 (0)