php-scoper icon indicating copy to clipboard operation
php-scoper copied to clipboard

🔨 Prefixes all PHP namespaces in a file/directory to isolate the code bundled in PHARs.

Results 79 php-scoper issues
Sort by recently updated
recently updated
newest added

## Bug report | Question | Answer | ------------| --------------- | PHP-Scoper version | 3.16.0, 4.0.2 | PHP version | 8.1.7 | Platform with version | Manjaro (ArchLinux) | Composer...

Hello, I just upgrade to Box 4.0.0 and it looks like it comes with a newer version of PHP-Scoper that doesn't have some original configuration options. I figured out that...

Please consider signing your PHAR with a GPG key and publish that signature alongside the signed PHAR so that `--force-accept-unsigned` is not required when using Phive.

critical bug

How to exclude string literal escaping (`\`) based on prefix? I want to exclude all strings starting with `f!`. Original: ``` add_filter('f!Wakaloka\PlainClasses::get_instance', fn ($service) => $service->instance); ``` Result: ``` add_filter('f!Wakaloka\\PlainClasses::get_instance',...

Edit: @matzeeable has created [WP React Starter](https://devowlio.gitbook.io/wp-react-starter/) which helps with this. However a cleaner extension point has been found and could help out as well outside of WP. Check https://github.com/humbug/php-scoper/issues/303#issuecomment-614097867...

enhancement

This is one way to fix issue #666 which is related to #597. Alternatively it could be implemented by rejecting empty regex. However, there appears to be a test to...

## Bug report | Question | Answer | ------------| --------------- | PHP-Scoper version | 0.17.2 | PHP version | 7.4.28 | Platform with version | WSL 2 When adding the...

## Feature Request Currently, when running add-prefix it always adds prefixes everything. In a building pipeline this is the desired behavior, but this is after development. While developing I unfortunately...

enhancement
help wanted

## Bug report | Question | Answer | ------------| --------------- | PHP-Scoper version | 0.17.0 | PHP version | 8.0.5 | Platform with version | MacOS | Github Repo |...

bug