Commit a1f4267
committed
bug symfony#60421 [VarExporter] Fixed lazy-loading ghost objects generation with property hooks (cheack)
This PR was submitted for the 7.3 branch but it was merged into the 6.4 branch instead.
Discussion
----------
[VarExporter] Fixed lazy-loading ghost objects generation with property hooks
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
Fixed the bug introduced in symfony#60288.
If the type is boolean:
```php
public bool $property = false {
set {
...
}
}
```
an empty string is exported:
```php
public bool $property = {
...
}
```
which leads to `ParseError: syntax error, unexpected token "{"` error.
Commits
-------
0c71a93 Fixed lazy-loading ghost objects generation with property hooks with default values.File tree
3 files changed
+23
-7
lines changed- src/Symfony/Component/VarExporter
- Tests
- Fixtures/LazyProxy
3 files changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
520 | 522 | | |
521 | 523 | | |
522 | 524 | | |
523 | 525 | | |
524 | 526 | | |
525 | 527 | | |
526 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
527 | 531 | | |
528 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
529 | 535 | | |
530 | 536 | | |
531 | 537 | | |
| |||
0 commit comments