Skip to content

Commit e299d61

Browse files
Closes #6092
Exclude the source files introduced in nikic/PHP-Parser@469377f from the PHAR as their unconditional require statements interfere with how autoloading works for the PHPUnit PHAR
1 parent 30e4106 commit e299d61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,18 @@
286286
</fileset>
287287
</copy>
288288

289+
<!-- https://github.com/sebastianbergmann/phpunit/issues/6092 -->
290+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Expr/ArrayItem.php"/>
291+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Expr/ClosureUse.php"/>
292+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/DNumber.php"/>
293+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/Encapsed.php"/>
294+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/EncapsedStringPart.php"/>
295+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/LNumber.php"/>
296+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/DeclareDeclare.php"/>
297+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/PropertyProperty.php"/>
298+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/StaticVar.php"/>
299+
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/UseUse.php"/>
300+
289301
<copy file="${basedir}/vendor/phar-io/manifest/LICENSE" tofile="${basedir}/build/tmp/phar/phar-io-manifest/LICENSE"/>
290302
<copy todir="${basedir}/build/tmp/phar/phar-io-manifest">
291303
<fileset dir="${basedir}/vendor/phar-io/manifest/src">

0 commit comments

Comments
 (0)