Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 committed Mar 1, 2024
1 parent 1b80c21 commit c787d30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/HandlerErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c787d30

Please sign in to comment.