Description
Logs fail to load in the Log Viewer interface with a 500 error. The error indicates a type mismatch in array_replace_recursive() function where an integer is being passed instead of an expected array.
Error Message
Request failed with status code 500: array_replace_recursive(): Argument #2 must be of type array, int given
Expected Behavior
Logs should load and display properly in the Log Viewer interface.
Actual Behavior
The application returns a 500 error with the message about array_replace_recursive() type mismatch, preventing logs from being displayed.
Environment
- Laravel Version: 12.44.0
- PHP Version: 8.4.16
- Composer Version: 2.9.3
- Log Viewer Package Version: 3.21.1
Additional Context
This appears to be a type-related issue, possibly related to PHP 8.4's stricter type checking. The error suggests that somewhere in the code, an integer value is being passed to array_replace_recursive() where an array is expected.
Description
Logs fail to load in the Log Viewer interface with a 500 error. The error indicates a type mismatch in
array_replace_recursive()function where an integer is being passed instead of an expected array.Error Message
Expected Behavior
Logs should load and display properly in the Log Viewer interface.
Actual Behavior
The application returns a 500 error with the message about
array_replace_recursive()type mismatch, preventing logs from being displayed.Environment
Additional Context
This appears to be a type-related issue, possibly related to PHP 8.4's stricter type checking. The error suggests that somewhere in the code, an integer value is being passed to
array_replace_recursive()where an array is expected.