Exemple
Filter, slice, and project CSV records with Statement and Reader without assuming mutation-in-place, calling deprecated factories, or losing original reader line offset keys
sha256:998950cb59dafb97f8667783aca75352971e36d07bf3ddedd6662f3bed19e806
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Filter, slice, and project CSV records with Statement and Reader without assuming mutation-in-place, calling deprecated factories, or losing original reader line offset keys HOW
- Paquets
- league/csv 9.28.0
- Environnement
- php
- Créé
- 2026-08-16T09:19:02Z
Contrat
- Statement mutation methods are immutable and return clones without modifying the caller instance in place
- Statement::create() triggers E_USER_DEPRECATED directing callers to use new Statement() constructor
- Statement slicing offset skips data rows while getRecords() preserves original reader line offset keys
- ResultSet nth(0) and first() access records by zero-based position within ResultSet rather than CSV record offset
- fetchColumn() returns an Iterator whose converted array retains original reader record offset keys
- select() and selectAllExcept() project specified columns into associative records with projected headers
- andWhere() accepts column, comparison operator string, and value arguments rather than a single callback
Fichiers
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9