Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStan のエラーを修正(level: 0) #4838

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

nanasess
Copy link
Contributor

概要(Overview・Refs Issue)

方針(Policy)

PHPStan の level: 0 でエラーの発生しないよう修正

実装に関する補足(Appendix)

  • src/Eccube/Controller/Admin/Setting/Shop/MailController.php - BadRequestHttpException の namespace が抜けていた
  • src/Eccube/Entity/Master/AbstractMasterEntity.php - new static() は継承先でエラーになる可能性がある
  • src/Eccube/Service/OrderHelper.php - メンバ変数が宣言されていなかった

テスト(Test)

PHPStan の level: 0 でエラーの出ないことを確認

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更
  • フックポイントの呼び出しタイミングの変更
  • フックポイントのパラメータの削除・データ型の変更
  • twigファイルに渡しているパラメータの削除・データ型の変更
  • Serviceクラスの公開関数の、引数の削除・データ型の変更
  • 入出力ファイル(CSVなど)のフォーマット変更

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

@nanasess nanasess changed the title PHPStan のエラーを修正 PHPStan のエラーを修正(level: 0) Jan 19, 2021
@kiy0taka kiy0taka merged commit be7f7d0 into EC-CUBE:4.0 Jan 20, 2021
@okazy okazy added the bug:Low label Jan 25, 2021
@okazy okazy added this to the 4.0.6 milestone Jan 25, 2021
@chihiro-adachi chihiro-adachi modified the milestones: 4.0.6, 4.1 Jul 12, 2021
@nanasess nanasess deleted the fix-phpstan-errors branch October 3, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants