Repository navigation
Commit 152dd5d
fix(deps-dev): rector を 2.5.8 に更新し phpstan 2.2 との非互換による fatal error を解消
rector 2.5.7 は phpstan 2.2 で削除された `PHPStan\Parser\RichParser` の private
プロパティ `$container` を PrivatesAccessor 経由で参照するため, DI コンテナ構築時に
MissingPrivatePropertyException で fatal error になり Rector ジョブが失敗していた.
composer の制約上は矛盾がない (rector 2.5.7 の要求は phpstan ^2.2.2) ため
dependabot が壊れた組み合わせの lock を生成していた.
rector 2.5.8 (rectorphp/rector-src#8208 "Bump to PHPStan ^2.2.6 and Fix its
Container compatibility in RichParser") で `$nodeVisitors` を参照する実装に
修正されているため 2.5.8 へ更新する. rector 2.3.9 への据え置きは phpstan を
^2.1.40 に固定する意味になり本 PR の phpstan 2.2 更新と両立しない.
あわせて 2.3.9 → 2.5.8 で追加された新ルールの指摘に追従する.
RemoveDefaultValueFromAssignedPropertyRector は以下の理由でスキップする.
- Entity (Order::$delivery_fee_total, Customer::$buy_times 等) の初期化子は
`#[ORM\Column(options: ['default' => 0])]` と対になる初期値の表明である
- LoggerFacade / TranslatorFacade の static プロパティは init() 前にも参照され得るため,
初期化子を消すと nullable 型なのに未初期化アクセスの Error になる
TwigInitializeListener では `@var Page $Page` の削除により
`$Page->getPageLayouts()` の native 型が解決されるようになり, 不正確な
`@var PageLayout[]` が PHPStan で検出されたため削除した
(`Page::getPageLayouts()` は `@return Collection<int, PageLayout>` を持つ).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 655c429 commit 152dd5d
96 files changed
Lines changed: 27 additions & 411 deletions
File tree
- codeception/acceptance
- src/Eccube
- Command
- Controller
- Admin
- Content
- Customer
- Order
- Product
- Setting/Shop
- AgentCommerce
- Install
- Mypage
- DependencyInjection/Compiler
- Doctrine
- Common/CsvDataFixtures
- Query
- Entity
- Master
- EventListener
- Event
- Form/Type/Admin
- Service
- AgentCommerce
- Acp
- Catalog
- Ucp
- Calculator
- PurchaseFlow/Processor
- tests/Eccube/Tests
- Command
- Doctrine/Query
- Entity/Master
- Fixture
- Plugin
- Repository
- Service
- AgentCommerce/Catalog
- Acp
- Ucp
- PurchaseFlow/Processor
- Util
- Web
- Admin
- Customer
- Order
- Product
- Setting/System
- Mypage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
| |||
302 | 297 | | |
303 | 298 | | |
304 | 299 | | |
305 | | - | |
306 | | - | |
307 | 300 | | |
308 | 301 | | |
309 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| |||
0 commit comments