Commit 4aa52b9
Fix TypeError when Blade::getPath() returns null during view caching (#150)
* Fix TypeError when Blade::getPath() returns null during view caching
Allow the path parameter in FragmentAlias::encode() to be nullable and handle null paths by defaulting to an empty string. This prevents TypeError when caching views with Volt components where the path is not available.
* Fix PHPStan errors for Livewire internal classes
Add ignoreErrors for ComponentRegistry class references that are internal to Livewire and not available during static analysis.
* Register the layouts namespace for L4 compatible
---------
Co-authored-by: c.cupas <c.cupas@tamkeentech.sa>1 parent f3d3bc1 commit 4aa52b9
4 files changed
Lines changed: 8 additions & 2 deletions
File tree
- src
- tests/Feature
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
0 commit comments