Skip to content

Commit

Permalink
Merge pull request #87 from ahmeti/patch-1
Browse files Browse the repository at this point in the history
Php 8.4 Desteği
  • Loading branch information
mlevent authored Nov 1, 2024
2 parents f1d89d3 + 99a4aca commit 2ecf045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function percentage(float $amount, int|float $rate): float
* @param string|null $modify
* @return string
*/
function curdate(string $format, string $modify = null): string
function curdate(string $format, ?string $modify = null): string
{
$date = new DateTime('now', new DateTimeZone('Europe/Istanbul'));
if ($modify) {
Expand All @@ -141,4 +141,4 @@ function curdate(string $format, string $modify = null): string
function dd($var, $die = true){
echo '<pre style="background:#000; color:#52eb34;">'; print_r($var); echo '</pre>'; if($die) exit;
}
}
}

0 comments on commit 2ecf045

Please sign in to comment.