You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #60809 [Serializer] Fix TraceableSerializer when called from a callable inside array_map (OrestisZag)
This PR was merged into the 6.4 branch.
Discussion
----------
[Serializer] Fix `TraceableSerializer` when called from a callable inside `array_map`
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
If the `TraceableSerializer` runs from a callable in an `array_map`, then the caller looses the file and the line because it was invoked. This causes a hard fail since the required items are not defined. The error is the following:
```
TraceableSerializer.php line 174:
Warning: Undefined array key "file".
```
The fix is to get the file and the line from the following array item which always is the caller class.
Commits
-------
490a110 Fix TraceableSerializer when collected caller from array map
0 commit comments