Closed michael-rubel closed 11 months ago
Named arguments don't work when using facade because of hardcoded args in __callStatic()
__callStatic()
Reproduce the problem:
Pdf::loadView('pdf.report', [ ... ], encoding: 'UTF-8')->output();
Then we get:
I've removed the magic method and the named arguments now work as expected, but I'm wondering if there was a special reason to add this code? All tests pass after the change:
I think there was a reason for this. But not 100% sure, probably with regards to multiple instances.
@michael-rubel hi, try #1002, I made another approach
About
Named arguments don't work when using facade because of hardcoded args in
__callStatic()
Reproduce the problem:
Then we get:
I've removed the magic method and the named arguments now work as expected, but I'm wondering if there was a special reason to add this code? All tests pass after the change: