Skip to content

Commit

Permalink
Closes #6092
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sebastianbergmann committed Jan 5, 2025
1 parent 30e4106 commit e299d61
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,18 @@
</fileset>
</copy>

<!-- https://github.com/sebastianbergmann/phpunit/issues/6092 -->
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Expr/ArrayItem.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Expr/ClosureUse.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/DNumber.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/Encapsed.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/EncapsedStringPart.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Scalar/LNumber.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/DeclareDeclare.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/PropertyProperty.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/StaticVar.php"/>
<delete file="${basedir}/build/tmp/phar/nikic-php-parser/PhpParser/Node/Stmt/UseUse.php"/>

<copy file="${basedir}/vendor/phar-io/manifest/LICENSE" tofile="${basedir}/build/tmp/phar/phar-io-manifest/LICENSE"/>
<copy todir="${basedir}/build/tmp/phar/phar-io-manifest">
<fileset dir="${basedir}/vendor/phar-io/manifest/src">
Expand Down

0 comments on commit e299d61

Please sign in to comment.