php-scoper
php-scoper copied to clipboard
🔨 Prefixes all PHP namespaces in a file/directory to isolate the code bundled in PHARs.
Attempt to fix #1010.
Small idea: ```php $x = StringLiteral:toScope('foo') . 'smth'; $x = StringLiteral:toNotScope('foo') . 'smth'; ```
I think there is a change in the behavior of some dependency which remove this useless parenthesis when parsing the file. ``` ($file instanceof \SplFileInfo) ? $file : new \SplFileInfo($file);...
Bumps the dependencies group with 3 updates in the /composer-root-version-checker directory: [psr/log](https://github.com/php-fig/log), [fidry/makefile](https://github.com/theofidry/makefile) and [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit). Updates `psr/log` from 3.0.0 to 3.0.1 Release notes Sourced from psr/log's releases. 3.0.1 What's Changed...
## Feature Request
Hi @theofidry, I discovered a bug with the php-scoper. Before the fix, I get ``` namespace Acme\Emca { if (!function_exists('Acme\Emca\foo')) { function Emca\foo() { return \Humbug\Acme\Emca\foo(...func_get_args()); } } } ```...
## Bug report | Question | Answer | ------------| --------------- | PHP-Scoper version | 0.18.14@d4e7ffa | PHP version | 8.2.8 | Platform with version | Windows 11 | Github Repo...
Bumps the dependencies group with 3 updates in the /composer-root-version-checker directory: [psr/log](https://github.com/php-fig/log), [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) and [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit). Updates `psr/log` from 3.0.1 to 3.0.2 Release notes Sourced from psr/log's releases. 3.0.2 What's Changed...
Bumps the dependencies group in /.github/workflows with 1 update: [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request). Updates `peter-evans/create-pull-request` from 6 to 7 Release notes Sourced from peter-evans/create-pull-request's releases. Create Pull Request v7.0.0 :sparkles: Now supports commit...
My composer library has the following restrictions on PHP ``` { "require": { "php": ">=7.2", "fakerphp/faker": "^1.20.0" }, } ``` If my local PHP version is PHP7.2, then I can...