mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Merge pull request #1164 from marcorieser/patch-1
Fixing `Attempt to read property "tag_name" on string` warning
This commit is contained in:
@@ -80,7 +80,7 @@ public function onLatestVersion($currentVersion)
|
||||
$url = 'https://api.github.com/repos/laravel/valet/releases/latest';
|
||||
$response = Utils::jsonDecode((new Client())->get($url)->getBody());
|
||||
|
||||
return version_compare($currentVersion, trim($response->body->tag_name, 'v'), '>=');
|
||||
return version_compare($currentVersion, trim($response->tag_name, 'v'), '>=');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user