codesamplex

サンプル

Configure command metadata and closures under Symfony Console 8 attribute requirements and strict return types

sha256:4744bedefa3787dfb7f70b2934a1a50647e14451335dafebfdf90fd51337f248

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Configure command metadata and closures under Symfony Console 8 attribute requirements and strict return types HOW
パッケージ
symfony/console 8.1.4
環境
php
作成日
2026-08-16T15:45:24Z

よくある思い込み

Subclassing Command with a static getDefaultName method automatically defines the command name on instantiation, and closures assigned via setCode may omit explicit integer return values.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート