Skip to content

fix: Fix the autoloading of the excluded files#1323

Merged
theofidry merged 4 commits intobox-project:mainfrom
theofidry:fix/scoper-hash
Apr 7, 2024
Merged

fix: Fix the autoloading of the excluded files#1323
theofidry merged 4 commits intobox-project:mainfrom
theofidry:fix/scoper-hash

Conversation

@theofidry
Copy link
Copy Markdown
Member

@theofidry theofidry commented Mar 8, 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 marked this pull request as ready for review March 8, 2024 14:31
@theofidry
Copy link
Copy Markdown
Member Author

Waiting for feedback on phpstan/phpstan-src#2905

@theofidry theofidry enabled auto-merge (squash) April 7, 2024 19:39
@theofidry
Copy link
Copy Markdown
Member Author

From my testing this looks to be fixing the issues. There is more issues related to the polyfill but that's a separate PHP-Scoper issue.

@theofidry theofidry merged commit d83ec37 into box-project:main Apr 7, 2024
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