Created
June 5, 2025 04:01
-
-
Save MikeGarde/c52d79dbe2e3d2d805e5ee3975381105 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function log(string $msg, null|array|object|string $optional = null): void | |
{ | |
if ($optional) { | |
if (is_array($optional) || is_object($optional)) { | |
$optional = json_encode($optional); | |
} | |
$msg .= ' | ' . $optional; | |
} | |
file_put_contents('/tmp/fixer-debug.log', date('[c] ') . $msg . "\n", FILE_APPEND); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment