Commit graph

113 commits

Author SHA1 Message Date
Jakub Tobiasz
7f0e55485f
Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedInterface Psalm error 2023-06-22 15:32:58 +02:00
Jakub Tobiasz
32eff56891
Ignore ApiPlatform\Core\Api\IriConverterInterface DeprecatedClass Psalm error 2023-06-22 14:22:50 +02:00
Rafikooo
5e8ac69238
[Psalm] Add CacheableSupportsMethodInterface to the deprecated classes list 2023-05-31 08:28:56 +02:00
Jakub Tobiasz
628a131be1
Silence Http\Message\MessageFactory deprecation report 2023-04-15 08:05:05 +02:00
Grzegorz Sadowski
0ce74bc597
Refactor not to use RequestStack::getMasterRequest() 2023-01-19 15:15:29 +01:00
Grzegorz Sadowski
cc661b02c9
Merge branch '1.11' into 1.12
* 1.11:
  [Maintenance] Remove Doctrine's LifecycleEventArgs deprecations
2023-01-04 07:48:52 +01:00
Jan Goralski
d718751f68
[Maintenance] Remove Doctrine's LifecycleEventArgs deprecations 2023-01-03 15:41:25 +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
f3b294bc59
[Maintenance][Psalm] Add Doctrine\ORM\Event\LifecycleEventArgs to deprecated classes 2022-12-20 14:41:16 +01:00
Jakub Tobiasz
d9a7ecbde5
Adjust FlattenException and HydraError normalizers to Symfony 5.4 2022-12-15 14:00:54 +01:00
Rafikooo
541e06c3b8
[Psalm] Skip deprecated in Symfony 6.2 class and interface 2022-12-06 14:22:39 +01:00
Mateusz Zalewski
21e30d6b73
Simplify tests directories exclusion in psalm.xml 2022-10-12 14:43:42 +02:00
Rafikooo
e585559c51
[Maintenance] psalm.xml updated with deprecated class and interface 2022-10-05 10:36:08 +02:00
Jan Goralski
18c888a6a9
Fix static checks on symfony 6 - continuation 2022-10-05 10:36:05 +02:00
Mateusz Zalewski
c364b25be3
[WIP] Fix static checks on Symfony 6 2022-10-05 10:36:05 +02:00
Mateusz Zalewski
7c8872efd5
Fix static checks for Symfony 5.4 2022-10-05 10:36:05 +02:00
Rafikooo
80f7fe5a63
[Config] Mark SenderInterface as excluded in psalm.xml 2022-09-12 18:53:38 +02:00
Rafikooo
ac3d899195
[Config] Mark SenderInterface as excluded in psalm.xml 2022-09-08 10:34:24 +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
Loïc Frémont
38126244fa Use Password hasher 2022-06-14 14:56:11 +02:00
Mateusz Zalewski
5bebfc5490
Revert ReflectionExtractor hot-fix 2022-06-13 19:11:33 +02:00
Grzegorz Sadowski
42c163f08f
Merge branch '1.11'
* 1.11:
  Use request stack service everytimes
  [Zones] disabled country choosing made possible
  Apply suggestions from code review
  Fix Phpspec errors again
  Trying to fix Phpspec on Symfony 4.4
  Fix Psalm errors
  Keep session for now
  Fix zone member integrity listener
2022-06-08 20:23:52 +02:00
Loïc Frémont
561867abc0 Fix Psalm errors 2022-06-08 09:31:48 +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
e8faa9ec03
Merge branch '1.11'
* 1.11:
  Psalm deprecation totallyTyped
  [Documentation] Adjust installation guide for Plus on 1.11
2022-02-21 15:22:44 +01:00
Ernest Warwas
4abff68e19
Psalm deprecation totallyTyped 2022-02-21 14:31:18 +01:00
TheMilek
088051c56f
Correcting failing tests, comments and missing configuration 2022-02-17 12:31:17 +01:00
Mateusz Zalewski
ced91b9bd6
Typehint templating engines properly 2022-02-03 16:56:32 +01:00
Adam Kasperczak
2964e0ed9d make workorounds over deprecated method in symofny 5.4 2021-12-02 12:12:12 +01:00
Adam Kasperczak
bc2d6e8cf4 [Locales][API] disable pagination for locale and minor fixes 2021-07-07 09:39:47 +02:00
Kamil Kokot
bfc1a2bea4
Merge branch '1.9' into 1.10
* 1.9:
  Fix the build with Symfony 5.3
2021-06-10 11:45:21 +01:00
Kamil Kokot
632cadcf01
Fix the build with Symfony 5.3 2021-06-10 09:58:59 +01:00
Grzegorz Sadowski
18b1ed427c
refactor #12510 Update to api platform v2.6 (Tomanhez)
This PR was merged into the 1.10-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

68a954c990 Add api resource configurations
8b6dec976c Remove redundant SubresourceDataProvider.php
04766380f7 Fix tests
9ee6202982 Fix RouteNameResolver
312ffe0e66 Fix last behats and specs
5f74dec4ee Remove box with info about api identifiers
9b466a1266 Fix phpunits
f6816bdbc7 Fix TokenValueBasedCartContext and add last fixes for tests
ee39c624f8 Remove ExtractorPropertyMetadataFactory
155dd7a7cb Fix tests
2021-04-13 08:05:01 +02:00
Tomanhez
9ee6202982 Fix RouteNameResolver 2021-04-07 14:53:06 +02:00
Kamil Kokot
d44dea0263 Merge branch '1.9'
* 1.9:
  Change app.php to index.php
  Lock on Admin API Bundle v1.8
  Add conflict with jms/serializer-bundle 3.9.0
  Add LazyOption::getOneBy backported from 1.9, since newer AdminApiBundle depends on it
  Explicitly set version in composer.json
  Extract sylius/admin-api-bundle
2021-04-07 09:02:08 +01:00
Kamil Kokot
de0e93afb4 Merge branch '1.8' into 1.9
* 1.8:
  Change app.php to index.php
  Lock on Admin API Bundle v1.8
  Add conflict with jms/serializer-bundle 3.9.0
  Add LazyOption::getOneBy backported from 1.9, since newer AdminApiBundle depends on it
  Explicitly set version in composer.json
  Extract sylius/admin-api-bundle
2021-04-07 08:59:48 +01:00
Kamil Kokot
8aa834a970 Extract sylius/admin-api-bundle 2021-03-30 15:36:40 +01: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
Tomanhez
0f8f5090da
Add tests for chceking relations and iris on api resource 2021-02-26 09:25:48 +01:00
Kamil Kokot
25457eea9f Replace zendframework/zend-stdlib with laminas/laminas-stdlib 2021-02-18 14:47:38 +00:00
Kamil Kokot
310986eb2a Fix timeout on 404 Not Found errors when using templating and Symfony 4.4 2021-02-15 19:55:13 +00:00
Kamil Kokot
eb40b5a679 [ApiBundle] Fix the issue with too few arguments passed to has* methods
Ref: https://github.com/symfony/symfony/issues/39885
2021-01-21 12:27:03 +01:00
Kamil Kokot
e6170fe53a [Psalm] Fix configuration for Symfony ^4.4 deprecations 2021-01-21 12:00:10 +01:00
Kamil Kokot
a419508ef4 [Psalm] Improve configuration 2021-01-21 12:00:09 +01:00
Kamil Kokot
f0df509e23 Remove use of deprecated method Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent::getException 2021-01-21 12:00:09 +01:00
Kamil Kokot
8144de2da8 [Psalm] Improve configuration 2021-01-21 12:00:09 +01:00
Kamil Kokot
bcf9be87dd [Psalm] Ignore missing Symfony\Bundle\FrameworkBundle\Templating\EngineInterface 2021-01-21 12:00:09 +01:00
Kamil Kokot
14869ea0eb [Psalm] Do not fail on invalid docblock in \Doctrine\ORM\EntityRepository::__construct 2021-01-21 12:00:09 +01:00
Kamil Kokot
326d38f9e0 Fix bugs reported by Psalm 2021-01-21 12:00:09 +01:00