-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
Description
Symfony version(s) affected
7.4
Description
Hi!
running phpunit test changes my config/reference.php
The interesting thing is taht the change is just the order of @psalm-typt annotations. But a change is a change and I end up uncommitted changes after running my tests.
Running cache:clear after it, resets the file to the original state
-- a/config/reference.php
+++ b/config/reference.php
@@ -485,11 +485,6 @@ namespace Symfony\Component\DependencyInjection\Loader\Configurator;
* enable_profiler?: bool, // Whether or not to enable the profiler collector to calculate and visualize migration status. This adds some queries overhead. // Default: false
* transactional?: bool, // Whether or not to wrap migrations in a single transaction. // Default: true
* }
- * @psalm-type MakerConfig = array{
- * root_namespace?: scalar|null, // Default: "App"
- * generate_final_classes?: bool, // Default: true
- * generate_final_entities?: bool, // Default: false
- * }
* @psalm-type FrameworkConfig = array{
* secret?: scalar|null,
* http_method_override?: bool, // Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests. // Default: false
@@ -1446,13 +1441,6 @@ namespace Symfony\Component\DependencyInjection\Loader\Configurator;
* }>,
* role_hierarchy?: array<string, string|list<scalar|null>>,
* }
- * @psalm-type DebugConfig = array{
- * max_items?: int, // Max number of displayed items past the first level, -1 means no limit. // Default: 2500
- * min_depth?: int, // Minimum tree depth to clone all the items, 1 is default. // Default: 1
- * max_string_length?: int, // Max length of displayed strings, -1 means no limit. // Default: -1
- * dump_destination?: scalar|null, // A stream URL where dumps should be written to. // Default: null
- * theme?: "dark"|"light", // Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light". // Default: "dark"
- * }
* @psalm-type WebpackEncoreConfig = array{
* output_path: scalar|null, // The path where Encore is building the assets - i.e. Encore.setOutputPath()
* crossorigin?: false|"anonymous"|"use-credentials", // crossorigin value when Encore.enableIntegrityHashes() is used, can be false (default), anonymous or use-credentials // Default: false
@@ -1625,6 +1613,12 @@ namespace Symfony\Component\DependencyInjection\Loader\Configurator;
* default_namespace?: scalar|null, // Default namespace where stories will be created by maker. // Default: "Story"
* },
* }
+ * @psalm-type DamaDoctrineTestConfig = array{
+ * enable_static_connection?: mixed, // Default: true
+ * enable_static_meta_data_cache?: bool, // Default: true
+ * enable_static_query_cache?: bool, // Default: true
+ * connection_keys?: list<mixed>,
+ * }
* @psalm-type EwzRecaptchaConfig = array{
* public_key: scalar|null,
* private_key: scalar|null,
@@ -1832,11 +1826,17 @@ namespace Symfony\Component\DependencyInjection\Loader\Configurator;
* required_frontend_locales?: list<scalar|null>,
* default_frontend_locale?: scalar|null, // Default locale of the public user interface. Must be set in available frontend locales. // Default: "hu"
* }
- * @psalm-type DamaDoctrineTestConfig = array{
- * enable_static_connection?: mixed, // Default: true
- * enable_static_meta_data_cache?: bool, // Default: true
- * enable_static_query_cache?: bool, // Default: true
- * connection_keys?: list<mixed>,
+ * @psalm-type MakerConfig = array{
+ * root_namespace?: scalar|null, // Default: "App"
+ * generate_final_classes?: bool, // Default: true
+ * generate_final_entities?: bool, // Default: false
+ * }
+ * @psalm-type DebugConfig = array{
+ * max_items?: int, // Max number of displayed items past the first level, -1 means no limit. // Default: 2500
+ * min_depth?: int, // Minimum tree depth to clone all the items, 1 is default. // Default: 1
+ * max_string_length?: int, // Max length of displayed strings, -1 means no limit. // Default: -1
+ * dump_destination?: scalar|null, // A stream URL where dumps should be written to. // Default: null
+ * theme?: "dark"|"light", // Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light". // Default: "dark"How to reproduce
- cleare cache
- run tests (my tests contains unit, kernel and webtestcase)
- git diff
Possible Solution
No response
Additional Context
bundles.php (just the usual boring stuff, exept DamaTestBundle that is only added to test)
return [
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\UX\Autocomplete\AutocompleteBundle::class => ['all' => true],
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
FOS\JsRoutingBundle\FOSJsRoutingBundle::class => ['all' => true],
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
Zenstruck\Foundry\ZenstruckFoundryBundle::class => ['dev' => true, 'test' => true],
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true], // <- note this
EWZ\Bundle\RecaptchaBundle\EWZRecaptchaBundle::class => ['all' => true],
Symfony\UX\LiveComponent\LiveComponentBundle::class => ['all' => true],
Symfony\UX\Icons\UXIconsBundle::class => ['all' => true],
HWI\Bundle\OAuthBundle\HWIOAuthBundle::class => ['all' => true],
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
Gesdinet\JWTRefreshTokenBundle\GesdinetJWTRefreshTokenBundle::class => ['all' => true],
];philbates35, alexislefebvre, pkranjcec-sofascore, llupa, Zuruuh and 1 moreajgarlag