Skip to content

Support Symfony 7. - #25

Open
vol4onok wants to merge 9 commits into
masterfrom
feature/frw-11816/master-support-sf-7-4
Open

Support Symfony 7.#25
vol4onok wants to merge 9 commits into
masterfrom
feature/frw-11816/master-support-sf-7-4

Conversation

@vol4onok

@vol4onok vol4onok commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Improvements

  • Symfony 7.4.

vol4onok added 7 commits July 28, 2026 13:21
…odern Rector config API, fix real PHPStan errors, and apply Rector's own auto-fixes

- spryker-sdk/architector: 0.1.x-dev -> dev-feature/frw-11816/symfony-7-support
  (temporary, for testing; revert once the architector PR is merged)
- phpstan.neon: remove obsolete checkMissingIterableValueType option (Rector 2.x
  pulls in phpstan/phpstan 2.x transitively), restore equivalent leniency via
  ignoreErrors since the missing array value types are pre-existing and out of
  scope here
- fix 2 real errors phpstan 2.x now catches: error_get_last()/getenv() called
  twice assuming the same narrowed result across both calls
- architector.php: RectorConfig::parameters()->set(Option::SKIP, ...) removed in
  Rector 2.x, replaced with skip(); 4 skipped rule classes no longer exist and
  were dropped, SimplifyUselessVariableRector's namespace changed
- ran composer rector to apply the now-passing dead-code/php74 rule sets:
  11 files with redundant @return docblocks (duplicating the native return
  type) and 2 properties with redundant/unsafe '= null' defaults
- reverted one of those two: AbstractAsyncApiMessage::$isWindows is a *static*
  property only assigned in the instance constructor, so removing its default
  broke real usage (Typed static property must not be accessed before
  initialization) even though Rector's static analysis considered it safe;
  caught by running the actual test suite, not just static analysis
…tractAsyncApiMessage::$isWindows

Path-scoped skip so future 'composer rector' runs don't keep re-proposing
this incorrect transform (it's a static property only assigned in the
instance constructor, so Rector's constructor-assignment safety check
doesn't hold for it).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant