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

gh-620: Explicitly include InstalledVersions.php and installed.php in PHAR #621

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

dantleech
Copy link
Contributor

The autoloadmap includes a mapping Composer\InstalledVersions but as of explicitly including src this file is no longer included.

This commit explicitly adds both vendor/composer/InstalledVersions.php and vendor/composer/installed.php to ensure that the previous behavior is preserved and WARNINGS are not issued when other packages use InstalledVersions::getVersion(// ...).

Related to #620
Fixes #620

Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.10%. Comparing base (0e91321) to head (6124c55).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #621   +/-   ##
=========================================
  Coverage     56.10%   56.10%           
  Complexity      116      116           
=========================================
  Files            28       28           
  Lines           672      672           
=========================================
  Hits            377      377           
  Misses          295      295           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…lled.php` in PHAR

The autoloadmap includes a mapping `Composer\InstalledVersions` but as
of explicitly including `src` this file is no longer included.

This commit explicitly adds both `vendor/composer/InstalledVersions.php`
and `vendor/composer/installed.php` to ensure that the previous behavior
is preserved and WARNINGS are not issued when other packages use
`InstalledVersions::getVersion(// ...)`.
@localheinz localheinz merged commit 0fe7b42 into ergebnis:main Oct 25, 2024
61 checks passed
@localheinz
Copy link
Member

Thank you, @dantleech!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Composer InstalledVersions not found
2 participants