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

fix: Correct the Composer autoload #864

Merged
merged 11 commits into from
Nov 4, 2023

Conversation

theofidry
Copy link
Member

@theofidry theofidry commented Oct 28, 2023

In 0.18.0-rc.0, more specifically in #298, the composer autoload global variable is completely reset. This is actually a problem for when there is excluded files, as they now count as not loaded and if included again in another project, will be loaded, which can cause problems.

@theofidry theofidry changed the title Fix/phpstan composer fix: Correct the Composer autoload Oct 28, 2023
@theofidry theofidry marked this pull request as ready for review October 31, 2023 23:14
@theofidry theofidry added this to the 1.0.0 milestone Nov 2, 2023
@theofidry theofidry enabled auto-merge (squash) November 4, 2023 10:01
@theofidry theofidry merged commit cbef87b into humbug:main Nov 4, 2023
117 checks passed
theofidry added a commit to theofidry/box that referenced this pull request Mar 8, 2024
This fixes the integration of
humbug/php-scoper#864 within Box which was done
in box-project#1142.
theofidry added a commit to box-project/box that referenced this pull request Apr 7, 2024
This fixes the integration of
humbug/php-scoper#864 within Box which was done in #1142.

The issue was that the relative file paths was passed instead of hashes. Note that we create the file hasher in a different way than in PHP-Scoper, since PHP-Scoper has to deal with the vendor directory from the source and the scoped one, and deals with absolute paths. In Box however, this is not the case, we directly get relative file paths (relative to the working directory)
@theofidry theofidry deleted the fix/phpstan-composer branch June 5, 2024 12:32
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