From 1e60695a3f87bbed726c6731e0f5421a2a3a2bfe Mon Sep 17 00:00:00 2001 From: Joey McKenzie Date: Thu, 29 Feb 2024 22:18:28 -0800 Subject: [PATCH] chore: cleanup --- .githooks/pre-commit | 3 ++- src/OpenBreweryDb.php | 9 +-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 34a24d6a..26c6504e 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -1,3 +1,4 @@ #!/bin/bash -composer run fmt \ No newline at end of file +composer run fmt +git add . \ No newline at end of file diff --git a/src/OpenBreweryDb.php b/src/OpenBreweryDb.php index 446e3ad4..df259ecc 100644 --- a/src/OpenBreweryDb.php +++ b/src/OpenBreweryDb.php @@ -12,11 +12,6 @@ */ final class OpenBreweryDb { - /** - * Current version of the library. - */ - private ?Version $version = null; - /** * Creates a new default client instance. */ @@ -42,8 +37,6 @@ public static function builder(): Builder */ public function getVersion(): Version { - $this->version ??= new Version(); - - return $this->version; + return Version::current(); } }