forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bc-exclude.php
More file actions
69 lines (54 loc) · 4.86 KB
/
Copy path.bc-exclude.php
File metadata and controls
69 lines (54 loc) · 4.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php declare(strict_types=1);
return [
'filePatterns' => [
'**/Test/**', // Testing
'**/src/Core/Framework/Update/**', // Updater
'**/src/Core/TestBootstrapper.php', // Testing
'**/src/Core/Framework/Demodata/Faker/Commerce.php', // dev dependency
'**/src/Core/DevOps/StaticAnalyze/**', // dev dependency
'**/src/Core/Profiling/Doctrine/BacktraceDebugDataHolder.php', // dev dependency
'**/src/Core/Migration/Traits/MigrationUntouchedDbTestTrait.php', // Test code in prod
'**src/Core/Framework/Script/ServiceStubs.php', // never intended to be extended
'**/src/Core/Framework/App/AppException.php', // intended to be internal
],
'errors' => [
// Don't complain about doctrine library changes
'Doctrine\\\\DBAL',
// Will be typed in Symfony 8 (maybe)
preg_quote('Symfony\Component\Console\Command\Command#configure() changed from no type to void', '/'),
// False positive, when an object extends Symfony Command and has its own constructor
'.* was added to Method __construct\(\) of class Symfony\\\\Component\\\\Console\\\\Command\\\\Command',
preg_quote('Symfony\Component\Console\Command\Command#__construct()', '/'),
// Version-related const values changed for the 7.3 update
preg_quote('Value of constant Symfony\Component\HttpKernel\Kernel', '/'),
// Cannot be inspected through reflection https://github.com/Roave/BetterReflection/issues/1376
'An enum expression .* is not supported in .*',
// Incorrectly deprecated
'The return type of Shopware\\\\Core\\\\Checkout\\\\Document\\\\DocumentException.* changed from self',
preg_quote('The return type of Shopware\Core\Content\Product\ProductException::productNotFound() changed from self|Shopware\Core\Content\Product\Exception\ProductNotFoundException to Shopware\Core\Content\Product\Exception\ProductNotFoundException', '/'),
// Expected to be appended when a new event is added
preg_quote('Value of constant Shopware\Core\Framework\Webhook\Hookable', '/'),
// No break as mixed is the top type, and every other type is a subtype of mixed
preg_quote('CHANGED: The return type of Shopware\Core\Framework\Util\Random::getRandomArrayElement() changed from no type to mixed', '/'),
// Domain exceptions should not be extended in 3rd party code
preg_quote('ADDED: Parameter domain was added to Method invalidDomain() of class Shopware\Core\System\SystemConfig\SystemConfigException', '/'),
// Type widening from string to ParsedRobots|string is backward compatible - all existing string usage continues to work
preg_quote('CHANGED: The parameter $rules of Shopware\Storefront\Page\Robots\Struct\DomainRuleStruct#__construct() changed from string to Shopware\Storefront\Page\Robots\Parser\ParsedRobots|string', '/'),
// Should have been internal in the first place, all the other changelog classes were internal and already removed
preg_quote('REMOVED: Class Shopware\Core\Framework\Changelog\ChangelogSection has been deleted'),
preg_quote('REMOVED: Class Shopware\Core\Framework\Changelog\ChangelogKeyword has been deleted'),
// JWTGenerator not released yet
preg_quote('ADDED: Parameter disableValidation was added to Method decode() of class Shopware\Core\Framework\JWT\SalesChannel\JWTGenerator'),
preg_quote('ADDED: Parameter jwt was added to Method getTokenLifetime() of class Shopware\Core\Framework\JWT\SalesChannel\JWTGenerator'),
preg_quote('CHANGED: The number of required arguments for Shopware\Core\Framework\JWT\SalesChannel\JWTGenerator#getTokenLifetime() increased from 0 to 1'),
// consumed not released yet
preg_quote('REMOVED: Property Shopware\Core\Checkout\Payment\Cart\Token\TokenStruct#$consumed was removed'),
preg_quote('REMOVED: Method Shopware\Core\Checkout\Payment\Cart\Token\TokenStruct#isConsumed() was removed'),
preg_quote('REMOVED: Method Shopware\Core\Checkout\Payment\Cart\Token\TokenStruct#setConsumed() was removed'),
// Fix for promotion discount entity property initialization error - necessary to prevent runtime errors
preg_quote('CHANGED: Type of property Shopware\Core\Checkout\Promotion\Aggregate\PromotionDiscount\PromotionDiscountEntity#$usageKey changed from string to string|null', '/'),
preg_quote('CHANGED: The parameter $usageKey of Shopware\Core\Checkout\Promotion\Aggregate\PromotionDiscount\PromotionDiscountEntity#setUsageKey() changed from string to string|null', '/'),
// PDF will be the default when no $fileType is given and Accept header is not present or is a wildcard
preg_quote('CHANGED: Default parameter value for parameter $fileType of Shopware\Core\Checkout\Document\SalesChannel\DocumentRoute#download() changed from \'pdf\' to NULL', '/'),
],
];