Commit graph

44 commits

Author SHA1 Message Date
Rafikooo
82a37628c2
[ECS] Apply ecs fixes 2023-09-28 17:01:06 +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
Mateusz Zalewski
2b20304097
Merge branch '1.11'
* 1.11:
  Specify explicit priorities for all form type extensions
  Small CS fixes
  Line length fixes
  PHP 8 syntax in bundles vol.2
  Typehint templating engines properly
  Fix line length issues
  PHP 8 syntax in bundles #1
2022-02-04 12:08:12 +01:00
Mateusz Zalewski
ced91b9bd6
Typehint templating engines properly 2022-02-03 16:56:32 +01:00
Mateusz Zalewski
ff02e5c88b
Merge branch '1.11'
* 1.11:
  [Maintenance] Remove phpstan exclude for PHP7.4
2022-01-26 11:34:34 +01:00
Łukasz Chruściel
7e645e477e
[Maintenance] Remove phpstan exclude for PHP7.4 2022-01-26 11:12:05 +01:00
Manuele Menozzi
39181f558f Remove Symfony 4 circular dep exception listener fix (#13525) 2022-01-24 12:58:11 +01:00
Mateusz Zalewski
324e7c3bda
Ignore PHPStan analysis for StingInflector 2021-09-30 13:28:00 +02:00
Kamil Kokot
2d52274713 Merge branch '1.9'
* 1.9:
  [ApiBundle] Add README file with testing instructions
  [ApiBundle] Remove setting APP_DEBUG variable for PHPUnit
  [Api] Refactor fetching id from IRI converter to direct object
  [ApiBundle] Move unit tests of test application to src directory
  [ApiBundle] Revert changes in RouteNameResolver and PathPrefixProvider
  [ApiBundle] Refactor directories and namespaces of test application
  [ApiBundle] Update composer in test application
  [ApiBundle] Update .gitignore file in test application
  [ApiBundle] Simplify configs of test application
  Add tests for Taxon and add fixes
  Add tests for chceking relations and iris on api resource
  Add test and configuration for overwriting apiPlatform resources
  Add test for resource type entity
  Add test for new not admin api resource by loged admin
  Add test entity and api_platform overwriting config
  Add test app for ApiBundle
2021-03-01 09:26:13 +00:00
Kamil Kokot
e15b876b79 Merge branch '1.9'
* 1.9:
  Change application's version to v1.9.0-DEV
  Change application's version to v1.9.0-BETA.3
  Generate changelog for v1.9.0-BETA.3
  Fix timeout on 404 Not Found errors when using templating and Symfony 4.4
2021-02-15 20:24:25 +00:00
Viktor Szépe
5268808953
Update PHPStan configuration 2021-02-03 06:04:14 +01:00
Renamed from phpstan.neon (Browse further)