Commit graph

59 commits

Author SHA1 Message Date
Grzegorz Sadowski
25a3e77281
Merge branch '2.0' into api-platform-3
* 2.0: (547 commits)
  [Admin][UX] Filter translatable autocomplete results based on current locale [Admin][DX] Extract translatable autocomplete processing to a separate form type
  [Behat] Add possibility to accepting null as value in response checker
  [Maintenance] Enable non-UI tests in CI
  Fixes after CR
  Changes after CR
  [Admin][Product] Enable and fix tests
  [Admin][Product] Add view in store button
  Remove final from the Zone's form component
  Review fixes
  [Admin][UI] Add error indicators for form tabs and accordions
  [Admin][Taxon] Rename FormImageElement to ImageFormElement
  [Admin][Taxon] Split media more granularly
  [Admin][Taxon] Remove unnecessary code
  [Taxon][Behat] Extract management of image to separate form element.
  [Behat] Extract waitForFormUpdate function to CrudFormElement
  [Behat] Submit live component before submitting the form
  [Admin][Taxon][Image] Enable behat tests
  [Admin][Taxon] Implements media management
  [Admin][Product][Inventory] Enable behat tests
  [Admin][Zone] Move FormComponent
  ...
2024-05-20 12:36:43 +02:00
Jacob Tobiasz
32e2ccaa33 Update PHPStan ignore rules for Twig components 2024-05-13 15:05:26 +02:00
Jacob Tobiasz
ea30efbd6e
Exclude reporting the unused getDataModelValue() method 2024-04-09 15:49:42 +02:00
Jan Goralski
b3fa33432c
Resolve conflicts between 2.0 and bootstrap-admin-panel 2024-04-05 12:59:58 +02:00
Grzegorz Sadowski
d13ebb94d8
Merge branch '2.0' into api-platform-3
* 2.0: (776 commits)
  Add missing validation for the customers first and last name
  [CS][DX] Refactor
  Bring back all Sylius' state machines to Winzou
  Add overriding the Resource's state machine with the one from the Sylius abstraction
  Add missing locales to contract test
  [Taxon][Behat] validate translations with unexisting locales
  [ShippingMethod][Behat] validate translations with unexisting locales
  [Promotion][Behat] validate translations with unexisting locales
  [Product][Behat] validate translations with unexisting locales
  [PaymentMethod][Behat] validate translations with unexisting locales
  Validate all translatable objects for unexisiting locales
  Validate customer's password reset
  Validate customer creation and edit
  Make the validation trait more generic
  [Api] Change namespace of TaxonImagesTest class
  [Api] Remove _response suffix
  [Behat] Minor improvments of viewing_taxon_image scenario
  [Api][ProductImage] Add https prefix check
  [Api][Admin] Allow using float for ratio in exchange rate
  SYL-3329 Fix behat test for SyliusPayPalPlugin
  ...
2024-03-29 14:49:47 +01:00
Jacob Tobiasz
81678d8ff2
Resolve conflicts between 1.13 and 2.0 2024-03-22 15:26:12 +01:00
Jan Goralski
bfe31543db
[Maintenance] Ignore stan errors after ApiPlatform patch 2024-03-19 09:10:22 +01:00
Jacob Tobiasz
96dfe45e42
Update phpstan.neon.dist file 2024-03-14 09:59:28 +01:00
Grzegorz Sadowski
ae9ba0fe30
Merge branch '2.0' into api-platform-3
* 2.0: (172 commits)
  [Admin] Change name of official support section in menu and adjust translations
  Add all translations & change label
  Add business support CTA to admin panel
  [PromotionBundle] Add prefix to validation groups for promotion action/rule
  [PromotionBundle][PromotionRule] Add available type to validation message
  [PromotionBundle][PromotionAction] Add available type to validation message
  Update upgrade file
  [PromotionBundle] Split PromotionRuleValidator to PromotionRuleGroupValidator and PromotionRuleTypeValidator
  [PromotionBundle] Split PromotionActionValidator to PromotionActionGroupValidator and PromotionActionTypeValidator
  Add prefix sylius_ to validation groups
  Update upgrade file
  [PromotionBundle] Remove constraints from FormType to avoid double constraints
  [PromotionBundle] Move logic from PromotionRuleGroupValidator to PromotionRuleValidator
  [PromotionBundle] Move logic from PromotionActionGroupValidator to PromotionActionValidator
  [PromotionBundle] Add parameters validation groups for promotion action and promotion rule
  [ECS] Apply types order changes
  [ECS] Add union types ordering rule
  [ECS] Apply ecs fixes
  [ChannelsTest] use inArray to check locales
  [ApiBundle] Add contract tests for ProductTaxon resource
  ...
2023-12-15 14:45:38 +01:00
Jacob Tobiasz
e2cec8b0a0
Resolve conflicts between 1.13 and 2.0 2023-12-06 17:42:41 +01:00
Jan Goralski
7b931b8348
[DX] Ignore missing return of getId model methods and update baseline 2023-12-05 13:27:44 +01:00
Grzegorz Sadowski
3a110eaa56
Merge branch '2.0' into api-platform-3
* 2.0:
  [ShipmentBundle] Add symfony workflow configuration for Shipment
  [CoreBundle] Add Shipment transition listeners
  [CoreBundle] Add symfony workflow configuration for Shipment
  Fix failing phpspec scenario on Symfony 6.3.5 and above
  Fix failing phpspec scenario on Symfony 6.3.5 and above
  Fix failing phpspec scenario on Symfony 6.3.5 and above
  Services definition fix after review
  Fixes after review
  [Bunnyshell] Bump the PHP version to 8.2 in the php Dockerfile
  [ECS] Apply ecs fixes
  [ShippingBundle] Change deprecated Calendar class
  [Maintenance] Deprecate using `parentId` in TaxonSlugController
  Add newline to align with other public method
2023-10-06 09:25:17 +02:00
Grzegorz Sadowski
76053d1c8c
[API] Temporarily exclude ApiBundle from static analysis 2023-09-29 15:06:54 +02:00
Grzegorz Sadowski
ea1c36e1bb
Merge branch '1.13' into 2.0
* 1.13:
  [ECS] Apply ecs fixes
  [ShippingBundle] Change deprecated Calendar class
  [Maintenance] Deprecate using `parentId` in TaxonSlugController
  Add newline to align with other public method
2023-09-29 09:42:06 +02:00
Rafikooo
82a37628c2
[ECS] Apply ecs fixes 2023-09-28 17:01:06 +02:00
Rafikooo
fc36c2ae24
[UserBundle] Remove the UserPasswordEncoder class and related code 2023-09-26 13:52:18 +02:00
Rafikooo
e7df13958b
[CoreBundle] Move the PaymentFixture class in a proper namespace 2023-09-25 13:44:31 +02:00
Grzegorz Sadowski
34e77e5d0f
Merge branch '1.12' into 1.13
* 1.12:
  Provide post-CR fixes
  Fix static analysis
  Adjust scenarios to use less technical language
  Prevent placing an order with not available shipping method
  Add behat scenario covering preventing a placing an order with a disabled shipping method
  Add behat scenario covering expires session while cart updating
  [API] Fix CommandDenormalizer ignoring custom property names
  Update OrderController.php with early return
  check before refreshing from db
2023-07-21 07:19:19 +02:00
Jan Goralski
5b23529952
[API] Fix CommandDenormalizer ignoring custom property names 2023-07-14 11:45:59 +02:00
Grzegorz Sadowski
70107318d0
Merge branch '1.12' into 1.13
* 1.12:
  Add a conflict for doctrine/orm:2.15.3
  Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedInterface Psalm error
  Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedClass Psalm error
  Fix misleading signing in the admin panel feature description
  Update PHPStan baseline file
  [PHPStan] Upgrade to level 6 (#14019)
  [Maintenance] Update the copyright block
  [Docs] Update Vision role
  [Fixture] Improve LazyOption performance
  [CS][DX] Refactor
2023-06-23 08:11:04 +02:00
Lorenzo Ruozzi
bd109242e0
[PHPStan] Upgrade to level 6 (#14019) 2023-06-22 09:43:18 +02:00
Lorenzo Ruozzi
6312acfbc7 [PHPStan] Bump to level 5 (#14019) 2023-06-03 09:48:04 +02:00
Lorenzo Ruozzi
7aee835959
[PHPStan] Bump to level 5 (#14019) 2023-05-31 15:56:30 +02:00
Jakub Tobiasz
d0ed1e1cd6
Bump Psalm to v5 2023-05-13 06:03:21 +02:00
Lorenzo Ruozzi
390eb37045
[PHPStan] Bump to level 4 (#14019) 2023-05-12 07:14:48 +02:00
Lorenzo Ruozzi
4bc2aa7c01 [PHPStan] Bump to level 4 (#14019) 2023-05-08 11:53:02 +02:00
Grzegorz Sadowski
0ce74bc597
Refactor not to use RequestStack::getMasterRequest() 2023-01-19 15:15:29 +01:00
Grzegorz Sadowski
b64a9848ac
Merge branch '1.11' into 1.12
* 1.11:
  [PHPStan] Exclude SqlWalker because of a memory issue
  [Core][Configuration] Add sylius_core.order_by_identifier parameter
  [PHPUnit] Test OrderByIdentifierSqlWalker
  Default order by in to-many associations
  Add OrderByIdentifierSqlWalker
2023-01-12 12:31:10 +01:00
Kevin Kaniaburka
53caa2f872
[PHPStan] Exclude SqlWalker because of a memory issue 2023-01-11 10:15:56 +01:00
Grzegorz Sadowski
9632d1f688
Merge branch '1.11' into 1.12
* 1.11:
  [Composer] Add conflict with doctrine/annotations: ^2.0
  [Fix] Symfony container reanimation after friendsofsymfony/rest-bundle: 3.5.0 release
2023-01-09 14:08:55 +01:00
Rafikooo
7624482c42
[Fix] Symfony container reanimation after friendsofsymfony/rest-bundle: 3.5.0 release 2023-01-09 10:37:52 +01:00
Kevin Kaniaburka
cf8a0ecd26
minor #14491 Upgrade PHPStan to level 3 (lruozzi9)
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12 |
| Bug fix?        | no                                                      |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | partially #14019                      |
| License         | MIT                                                          |

Written during the journey to the SyliusCon, so lit 🔥 😆 

Commits
-------

67004338e1 [PHPStan] Bump to level 3 (#14019)
2022-12-21 09:26:45 +01:00
Kevin Kaniaburka
f220ac0f12
Merge branch '1.11' into 1.12
* 1.11:
  [PHPStan] Exclude Sylius\Bundle\CoreBundle\Doctrine\DQL\Month class
  [Maintenance][Psalm] Add Doctrine\ORM\Event\LifecycleEventArgs to deprecated classes
2022-12-20 16:33:43 +01:00
Rafikooo
a2710242de
[PHPStan] Exclude Sylius\Bundle\CoreBundle\Doctrine\DQL\Month class 2022-12-20 14:41:29 +01:00
Lorenzo Ruozzi
67004338e1 [PHPStan] Bump to level 3 (#14019) 2022-11-23 21:01:54 +01:00
Lorenzo Ruozzi
c04f1b4c6f [PHPStan] Remove Symfony configuration (#14019) 2022-10-20 14:26:50 +02:00
Lorenzo Ruozzi
efc4a6e920 [PHPStan] Fix some static errors (#14019) 2022-10-20 14:26:50 +02:00
Lorenzo Ruozzi
04c0d8c204 [PHPStan] Exclude behat files (#14019) 2022-10-20 14:26:49 +02:00
Lorenzo Ruozzi
8f39779bfe [PHPStan] Add symfony phpstan extension (#14019) 2022-10-20 14:26:49 +02:00
Lorenzo Ruozzi
16dd0281f8 [PHPStan] Resolve mock static checks failing (#14019) 2022-10-20 14:26:49 +02:00
Lorenzo Ruozzi
83f007e65f [PHPStan] Fix level 2 errors (#14019) 2022-10-20 14:26:49 +02:00
Lorenzo Ruozzi
68f4e7b7a1 [PHPStan] Add Webmozart assert PHPStan extension (#14019) 2022-10-20 14:26:49 +02:00
Lorenzo Ruozzi
fc210825ef [PHPStan] Use level 2 to analyse code (#14019) 2022-10-20 14:26:49 +02:00
Mateusz Zalewski
c364b25be3
[WIP] Fix static checks on Symfony 6 2022-10-05 10:36:05 +02:00
Grzegorz Sadowski
a5ac1597d8
Merge branch '1.11'
* 1.11:
  Change deprecated PHPStan config
  Revert ReflectionExtractor hot-fix
2022-06-15 14:05:40 +02:00
Grzegorz Sadowski
1a77c39d60
refactor #14082 Revert ReflectionExtractor hot-fix (Zales0123)
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11  |
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets |  |
| License         | MIT                                                          |

It's the highest time 🖖 


Commits
-------

5bebfc5490 Revert ReflectionExtractor hot-fix
2022-06-15 14:03:38 +02:00
Mateusz Zalewski
2ae7106fba
Change deprecated PHPStan config 2022-06-13 19:17:11 +02:00
Mateusz Zalewski
5bebfc5490
Revert ReflectionExtractor hot-fix 2022-06-13 19:11:33 +02:00
Grzegorz Sadowski
ad93c745ff
bug #13709 Fix fatal error when OPCache preloading is used (mmenozzi)
This PR was merged into the 1.12-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.11
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | none
| License         | MIT

While in Symfony 5 the `Symfony\Bundle\FrameworkBundle\Templating\EngineInterface` was removed, in Sylius there were still references to that interface in docblock comments.

With Sylius 1.11 ([with this commit](ced91b9bd6)) the type hint has been promoted to a PHP type hint. This normally does not cause any problem because apparently the class loading is lazy and does not try to load the non-existent interface.

But if PHP OPCache preload is used, like suggested [here](https://symfony.com/doc/current/performance.html#use-the-opcache-class-preloading), it appears that PHP switches to eager class loading and you get the following fatal error:

```
NOTICE: PHP message: PHP Fatal error:  Failed to load class Symfony\Bundle\FrameworkBundle\Templating\EngineInterface used by typed property Sylius\Bundle\ShopBundle\Controller\SecurityWidgetController::$templatingEngine during preloading in Unknown on line 0
```

With this PR we propose to remove all references to the old interface as Symfony 4 is not supported anymore by Sylius.

Commits
-------

1b555f948d Remove references to old Symfony FrameworkBundle EngineInterface
2022-03-29 09:28:22 +02:00
Manuele Menozzi
1b555f948d Remove references to old Symfony FrameworkBundle EngineInterface
Which was removed in Symfony 5.
2022-02-28 18:28:11 +01:00