Skip to content

Commit

Permalink
- Added author homepage to our composer file
Browse files Browse the repository at this point in the history
- Fixed possible exception on production environments, due to empty build variables

Signed-off-by: Martin Niehoff <info@martin-niehoff.de>
  • Loading branch information
swatty007 committed Mar 14, 2021
1 parent aac0f16 commit 42aa8f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -17,7 +17,8 @@
{
"name": "Martin Niehoff",
"email": "info@martin-niehoff.de",
"role": "Developer"
"role": "Developer",
"homepage": "https://martin-niehoff.de"
}
],
"require": {
Expand Down
3 changes: 3 additions & 0 deletions src/Views/Components/Version.php
Expand Up @@ -59,6 +59,9 @@ public function __construct($changelogURL = null)
if (!App::environment('production')) {
$this->runtime = Cache::pull(config('laravel-versioning-helper.runtime_key')) ?? 'PHP v' . PHP_VERSION;
$this->build .= " $this->runtime";
} else {
$this->runtime = '';
$this->build = '';
}
}

Expand Down

0 comments on commit 42aa8f2

Please sign in to comment.