Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to PHP8 versions of dependencies #1518

Closed
wants to merge 88 commits into from

Conversation

pjcdawkins
Copy link
Collaborator

@pjcdawkins pjcdawkins commented Dec 16, 2024

Based on #1506. Changes include:

  • Upgrade Guzzle from v5 to v7
  • Upgrade Symfony from v3 to v7
    • Convert commands to lazy-loaded
    • Autowire service dependencies
    • Move code from CommandBase and some other abstract classes to new services, same features (AutoLoginListener, CountryService, DrushAliasUpdater, HostFactory, InstallationInfo, Io, LegacyMigration, Login, ProjectSshInfo, ResourcesUtil, SelfInstallChecker, SelfUpdateChecker, SubCommandRunner, TunnelManager). Much of this but not all via Rector.
    • Use Symfony autocompletion (slight behavior change)
  • Upgrade Box from v3 to v4
  • Upgrade code to use PHP 8 features - type hints, etc.
  • Lint files with PHP-CS-Fixer with ruleset PSR12 for readability and PHP84Migration for compatibility
  • Lint files with PHPStan (level 7) for improved type safety

@pjcdawkins pjcdawkins force-pushed the upgrade-php-8-dependencies branch 2 times, most recently from e32457e to 863133f Compare December 16, 2024 14:46
@pjcdawkins pjcdawkins force-pushed the upgrade-php-8-dependencies branch 26 times, most recently from 5a6a8f6 to a129d36 Compare December 23, 2024 12:51
@pjcdawkins pjcdawkins force-pushed the upgrade-php-8-dependencies branch from 080c969 to 461ac1f Compare December 27, 2024 09:28
@pjcdawkins
Copy link
Collaborator Author

This is now part of branch 5.x
https://github.com/platformsh/legacy-cli/tree/5.x

@pjcdawkins pjcdawkins closed this Dec 27, 2024
@pjcdawkins pjcdawkins deleted the upgrade-php-8-dependencies branch December 27, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant