From c787d30af6adf962df48db7024d4f7120e56ded6 Mon Sep 17 00:00:00 2001 From: Juan Cristobal Date: Fri, 1 Mar 2024 03:54:55 +0100 Subject: [PATCH] update file --- src/App.php | 4 ++-- src/HandlerErrors.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.php b/src/App.php index 269fea7..1ec386f 100644 --- a/src/App.php +++ b/src/App.php @@ -237,9 +237,9 @@ public function hasCsrfToken(string $token): bool /** * Get the version of a specified library. */ - public function version(string $libraryName = 'axm/axm'): ?string + public function version(string $libraryName = 'axm/framework'): ?string { - $v = InstalledVersions::getVersion($libraryName); + $v = \InstalledVersions::getVersion($libraryName); return $v; } diff --git a/src/HandlerErrors.php b/src/HandlerErrors.php index b3c5080..c250163 100644 --- a/src/HandlerErrors.php +++ b/src/HandlerErrors.php @@ -48,7 +48,7 @@ function theme(\Throwable $e): string $trace = $e->getTraceAsString(); $date = date('d-m-Y H:i:s'); - $axm_v = 1.0 ?? ''; + $axm_v = app()->version() ?? '1.0'; $php_v = PHP_VERSION; $info = sprintf('Date: %s Axm Framework version: %s PHP version: %s', $date, $axm_v, $php_v); $output = $title