Sample
nikic/php-parser 5.8.0: Prove that ParserFactory::createForVersion expects a PhpVersion object, not legacy integer kind constants.
Verified sample for composer nikic/php-parser 5.8.0: Prove that ParserFactory::createForVersion expects a PhpVersion object, not legacy integer kind…
sha256:2f575c0da5b071e88ac0a9aa7da2b69d3752b2625239ad080bbacd6225817b77
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 2
- Signing keys that built it
- 1
Declared environment
php linux x64 php php composer
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | SKIPPED | compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL CONTAINER_RUN · composer@1 |
2026-08-18 |
Case
HOW- Goal
- Prove that ParserFactory::createForVersion expects a PhpVersion object, not legacy integer kind constants.
- Packages
- Symbols
-
- PhpParser\ParserFactory
- PhpParser\ParserFactory::createForVersion
- PhpParser\PhpVersion
- Environment
- php
- Created
- 2026-08-16T12:17:31Z
Contract
- ParserFactory::createForVersion(PhpVersion::fromString('8.1')) returns a parser instance.
- ParserFactory::createForVersion(ParserFactory::PREFER_PHP7) throws, demonstrating integer kind constants are no longer accepted.
Files
- NOTES.md
- composer.json
- csx.json
- test/contract.php