Problem
phpunit.xml references the PHPUnit XSD schema version 10.2, but composer.json requires phpunit/phpunit: ^10.4. This mismatch means:
- New configuration options available in PHPUnit 10.4+ won't be validated by the schema
- IDE autocompletion may not suggest newer config options
- Schema validation may not catch deprecated options
Location
Current Code
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
Proposed Fix
Update to match the minimum required version:
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
Or use the latest 10.x schema:
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
This references the locally installed version's schema, which always matches.
Priority
🟡 MEDIUM — minor config mismatch; easy fix.
Problem
phpunit.xmlreferences the PHPUnit XSD schema version10.2, butcomposer.jsonrequiresphpunit/phpunit: ^10.4. This mismatch means:Location
phpunit.xml, line 4Current Code
Proposed Fix
Update to match the minimum required version:
Or use the latest 10.x schema:
This references the locally installed version's schema, which always matches.
Priority
🟡 MEDIUM — minor config mismatch; easy fix.