Commit 4c788c1
committed
Integrate marwa-support library and fix PHPStan errors
- Extend Str, Arr, Collection from marwa-support classes
- Use Date::format() in Helpers::now()
- Replace json_encode/decode with Json class
- Replace number_format with Number::format()
- Add EagerLoads trait to Model
- Fix PHPStan: null checks in aggregate methods, return types
- Fix foreach.emptyArray by assigning to variable first
Reduces PHPStan errors from 68 to 621 parent 5dea6ef commit 4c788c1
24 files changed
Lines changed: 310 additions & 193 deletions
File tree
- bin
- src
- Connection
- ORM
- Traits
- Query
- Schema
- Seeder
- Support
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments