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

Upgrade to box ^3.15 (PHP81 compatibility) #17

Merged
merged 1 commit into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ prepare:
php $(BUILD_DIR)/fix-some-stuff-in-composer.php
composer --working-dir='$(BUILD_DIR)' config platform.php '$(PHP)'
composer install --working-dir='$(BUILD_DIR)' --no-scripts --no-plugins --no-dev --no-interaction --optimize-autoloader
./vendor/bin/box compile --working-dir='$(BUILD_DIR)'
php -d error_reporting='(E_ALL & ~E_DEPRECATED)' ./vendor/bin/box compile --working-dir='$(BUILD_DIR)' -vvv
# Copy composer plugin
cp '$(BUILD_DIR)/src/Composer/GrumPHPPlugin.php' '$(ROOT_DIR)/src/Composer/GrumPHPPlugin.php'
# All good : lets finish up
Expand Down
19 changes: 13 additions & 6 deletions build/scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,22 @@
);

return [
'whitelist' => [
'GrumPHP\*',
'PhpParser\*',
'Composer\*',
'Symfony\\Polyfill\\*',
'exclude-namespaces' => [
'GrumPHP',
'PhpParser',
'Composer',
'Symfony\Polyfill',
],
'files-whitelist' => [
'exclude-files' => [
...$polyfillsBootstraps,
...$polyfillsStubs
],
/*
* Expose global symbols fixes issues like `trigger_deprecation()` inside Symfony.
* These global function gets scoped, but the usage is not replaced.
*/
'expose-global-functions' => true,
'expose-global-classes' => true,
'expose-global-constants' => true,
'patchers' => []
];
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"composer-plugin-api": "~2.0"
},
"require-dev": {
"humbug/box": "^3.12.2",
"jetbrains/phpstorm-stubs": "dev-master@dev"
"humbug/box": "^3.16"
},
"replace": {
"phpro/grumphp": "self.version"
Expand Down