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 | 0.14.0 | PHP version | 7.4.16 | Platform with version | Alpine Linux 3.13.2 Scoper does...

enhancement
help wanted

Howdy! I tried to use PHP-Scoper to prefix a WordPress plugin but couldn't. I saw the issue https://github.com/humbug/php-scoper/issues/303 and the PR https://github.com/humbug/php-scoper/pull/433, I've read through a fair amount of comments...

Hi, I'm using scoped to prefix @rectorphp and one of dependencies is using [Symfony PSR-4 autodiscovery](https://symfony.com/blog/new-in-symfony-3-3-psr-4-based-service-discovery) configs - plain PHP files. The classes in configs are prefixI've notice the namespaced...

## Feature Request Right now there's a `finders` configuration key that tells how to find the files to be processed and included in the output. The problem is that there's...

documentation

This pull request fixes a bug and adds a new feature. The former is a prerequisite for the later. #### Fixed bug `validateOutputDir` in `AddPrefixCommand` asks the user for confirmation...

Add an `output-dir` option to the configuration file. This allows to specify the base output directory for the generated prefixed files in the configuration file, the same way as the...

See https://github.com/sebastianbergmann/phpunit/issues/3750.

enhancement
help wanted

See https://github.com/rectorphp/compiler/pull/4#issuecomment-459954224

enhancement
help wanted

```php if ('Hoa\\Core' === \substr($classname, 0, 8) && \false !== ($pos = \strpos($classname, '\\', 10)) && 'Bin\\' !== \substr($classname, 9, 4)) { ``` There is no reason to not prefix...

enhancement
help wanted

e.g.: ```php if ($type & self::OUTPUT_RAW) { $messages = \array_map(['Symfony\Component\Console\Formatter\OutputFormatter', 'escape'], $messages); } ``` ```php return \call_user_func_array(array('Symfony\\Component\\Debug\\Exception\\FlattenException', $method), $args); ``` This peculiar case could be part of #286, but more...

enhancement
help wanted