Commit graph

89 commits

Author SHA1 Message Date
Rafikooo
80f7fe5a63
[Config] Mark SenderInterface as excluded in psalm.xml 2022-09-12 18:53:38 +02:00
Mateusz Zalewski
5bebfc5490
Revert ReflectionExtractor hot-fix 2022-06-13 19:11:33 +02:00
Loïc Frémont
561867abc0 Fix Psalm errors 2022-06-08 09:31:48 +02:00
Ernest Warwas
4abff68e19
Psalm deprecation totallyTyped 2022-02-21 14:31:18 +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
Kamil Kokot
cd452a4bcb
Upgrade to sylius/theme-bundle ^2.1 and remove Twig templating 2021-01-11 18:14:09 +01:00
Kamil Kokot
4e08977dd8
Replace Doctrine\Common\Persistence with Doctrine\Persistence 2021-01-11 18:14:08 +01:00
Kamil Kokot
ecc2bfd8d2
Remove redundant Psalm config 2020-11-18 17:11:36 +01:00
Kamil Kokot
2b36e9548b
Switch to Psalm 4 2020-11-18 16:55:36 +01:00
Łukasz Chruściel
66db26879f
[Api] Add experimental warning to swagger 2020-09-07 14:48:48 +02:00
Grzegorz Sadowski
dc5af46db2
[Docs] Fix upmerge conflict 2020-08-03 15:19:20 +02:00
Mateusz Zalewski
8017579904
[Hot-fix] Handle extra docblocks in Psalm 2020-08-03 09:28:31 +02:00
Grzegorz Sadowski
1e4a687a86
[API] Temporarily overwrite doctrine orm subresource data provider 2020-06-30 09:40:47 +02:00
Kamil Kokot
643699b67d
Add the Customer component's specs to ignored in Psalm 2020-06-24 14:24:13 +02:00
Kamil Kokot
5973709e62
Upgrade static analysis tools and improve their usage 2020-06-18 17:42:57 +02:00
Grzegorz Sadowski
016e8d506e
Resolve conlict during upmerging 2020-06-08 11:46:26 +02:00
Tomanhez
6302ef131a Add ignore files to psalm 2020-06-08 10:49:00 +02:00
Kamil Kokot
ca777cf6de
Fix Psalm errors 2020-05-28 10:41:19 +02:00
Kamil Kokot
ab375ffb32
Fix Psalm errors 2020-05-27 19:45:36 +02:00
Thomas Devos
078171031d Fix indentation error in psalm config file 2020-05-13 15:18:31 +02:00
Thomas Devos
ff6075115d Fix errors in psalm config file (xml version + indentations) 2020-05-13 15:16:02 +02:00
Thomas Devos
fd0ffb2e3a Psalm rulset modified for deprecated annotation added 2020-05-12 22:25:39 +02:00
Mateusz Zalewski
1c97d2d6a3
Merge branch '1.7'
* 1.7:
  Fix all Psalm errors
  fixed wrapping of tabs in product attribute section
2020-05-07 15:41:12 +02:00
Kamil Kokot
fbf775d260
Fix all Psalm errors 2020-05-07 14:46:51 +02:00
Olivier ALLAIN
5f71fd358c update Psalm version 2020-04-20 19:47:43 +02:00
Kamil Kokot
f5564d0ed6
Merge branch '1.7'
* 1.7:
  [Maintenance] Remove memory swap
  [Maintenance] Lower Sylius\ThemeBundle to 1.5
  [Maintenance] Lower Sylius\FixtureBundle to 1.4
  [Maintenance] Lower Sylius\Registry to 1.4 & Sylius\Mailer to 1.4
  [Maintenance] Upgrade packages to Sylius ^1.6
  Attempting to create swap space to accomodate composer's memory issues
  Refactored unit test for the order items subtotal calculator test
  Removed doc from constructor
  Update src/Sylius/Bundle/ShopBundle/Twig/OrderItemsSubtotalExtension.php
  Also triggering user deprecation "error"
  Changed todo into deprecation comment
  Made injection of calculator in twig extension optional
  Enabling psalm plugin
  Added mockery plugin for psalm
  Separated order items subtotal calculation logic from twig extension
  Use only empty function to check property path
  Check is null
  Check if PropertyPath is empty for add error to form
2020-04-10 13:06:10 +02:00
Kamil Kokot
895c0509c3
Merge branch '1.6' into 1.7
* 1.6:
  [Maintenance] Remove memory swap
  [Maintenance] Lower Sylius\ThemeBundle to 1.5
  [Maintenance] Lower Sylius\FixtureBundle to 1.4
  [Maintenance] Lower Sylius\Registry to 1.4 & Sylius\Mailer to 1.4
  [Maintenance] Upgrade packages to Sylius ^1.6
  Attempting to create swap space to accomodate composer's memory issues
  Refactored unit test for the order items subtotal calculator test
  Removed doc from constructor
  Update src/Sylius/Bundle/ShopBundle/Twig/OrderItemsSubtotalExtension.php
  Also triggering user deprecation "error"
  Changed todo into deprecation comment
  Made injection of calculator in twig extension optional
  Enabling psalm plugin
  Added mockery plugin for psalm
  Separated order items subtotal calculation logic from twig extension
  Use only empty function to check property path
  Check is null
  Check if PropertyPath is empty for add error to form
2020-04-10 11:11:51 +02:00
Kamil Kokot
f447181251
[Symfony 5] Upgrade to PHPUnit 8 and DependencyInjectionTest 4 2020-04-02 23:40:44 +02:00
Adam Kasperczak
b491a99f1f
minor fixes after merge 2020-03-17 15:14:27 +01:00