CodeSampleX

Exemple

symfony/console v7.2.8: Accurately calculate Table column widths and wrapping when combining TableCell colspan with per-column setColumnMaxWidth constraints

Échantillon vérifié pour composer symfony/console v7.2.8: Accurately calculate Table column widths and wrapping when combining TableCell colspan with…

sha256:89afc201c4bfa004148a13da413c0cb0fe77d5d9ca4e6b45a5bec301d7080e69

Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré. Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes. MIT-0

Preuves d'exécution

L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.

Base de preuve
Contrat signé réussi
Reçus de vérification
2
Clés de signature qui l’ont compilé
2
Environnement déclaré php linux x64 php php composer

Environnements des exécutions de vérification

Environnement Contrat Étapes Exécution
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 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · composer@1
2026-08-18

Cas

HOW
Objectif
Accurately calculate Table column widths and wrapping when combining TableCell colspan with per-column setColumnMaxWidth constraints
Paquets
Symboles
  • Symfony\Component\Console\Helper\Table
  • Symfony\Component\Console\Helper\Table::setColumnMaxWidth
  • Symfony\Component\Console\Helper\TableCell
Environnement
php
Créé
2026-08-16T08:57:29Z

Contrat

  1. assert Table wraps spanned cells against combined column max widths instead of multiplying column 0 width
  2. assert Table preserves column widths across spanned columns without collapsing constrained borders
  3. assert Table wraps spanned cells when only non-zero column indices have setColumnMaxWidth configured
  4. assert Table::setColumnMaxWidth throws LogicException when output formatter does not implement WrappableOutputFormatterInterface

Fichiers

  • NOTES.md
  • composer.json
  • composer.lock
  • csx.json
  • test/contract.php

Télécharger l’artefact source (tar.gz)

Seeder d'origine

csx-seed