Commit graph

23 commits

Author SHA1 Message Date
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)