Cast A Closure To Array

no-email (Saif Eddin Gmati), Saif Eddin Gmati
Sun, 11 May 2025 00:00:00 +0000

TIL: ``(array) $obj`` will result in ``array<string, mixed>`` ( properties key/value pairs ), with the exception if ``$obj`` is Closure, where the result would be ``[$obj]``.