Skip to content

Commit

Permalink
Fix deprecated time formatting in PHP 8.1+
Browse files Browse the repository at this point in the history
Fixes #413
  • Loading branch information
bobthecow committed May 10, 2024
1 parent a489a97 commit 92076e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function load(array $classes, $cacheDir, $name, $extension = '.php
}

$cache = $cacheDir . '/' . $name . $extension;
$header = sprintf(self::HEADER, strftime('%Y'));
$header = sprintf(self::HEADER, date('Y'));
self::writeCacheFile($cache, $header . substr(self::stripComments('<?php ' . $content), 5));
}

Expand Down

0 comments on commit 92076e6

Please sign in to comment.