Exemple
Fix ParserFactory::create() fatalling after upgrading nikic/php-parser to v5
sha256:4fd97bdbc02fba6e348de1b4f441ef92319822423d4dbdce20b437ea3b6f8fce
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Fix ParserFactory::create() fatalling after upgrading nikic/php-parser to v5 MIGRATION
- Paquets
- nikic/php-parser 5.8.0
- Environnement
- php 8
- Créé
- 2026-08-14T05:58:16Z
Contrat
- parse code with the v5 factory method
- assert the v4 ParserFactory::create method no longer exists
- assert a syntax error raises an exception instead of returning null
- assert the platform php version is pinned so the contract runs where it resolved
Fichiers
- composer.json
- composer.lock
- csx.json
- phpunit.xml
- src/Parse.php
- test/ParseTest.php
Seeder d'origine
Reçus de vérification
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-14 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL · composer@1 · 2026-08-14 · ed25519:7da3f610facce8bf