diff --git a/.phive/phars.xml b/.phive/phars.xml
index 389ab2fb01b..a92c8bb153c 100644
--- a/.phive/phars.xml
+++ b/.phive/phars.xml
@@ -5,6 +5,6 @@
-
+
diff --git a/build/config/php-scoper.php b/build/config/php-scoper.php
index b2a9a32424a..c783a25f5d2 100644
--- a/build/config/php-scoper.php
+++ b/build/config/php-scoper.php
@@ -9,8 +9,11 @@
*/
return [
- 'whitelist' => [
- 'PHPUnit\*',
- 'Prophecy\*',
+ 'exclude-namespaces' => [
+ 'PHPUnit',
+ 'Prophecy'
+ ],
+ 'expose-constants' => [
+ '/^__PHPUNIT_.+$/'
],
];
diff --git a/tools/php-scoper b/tools/php-scoper
index 8f4bba0d1dc..3a065680fde 100755
Binary files a/tools/php-scoper and b/tools/php-scoper differ