Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyMckenzie committed Mar 1, 2024
1 parent 8d38299 commit 1e60695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

composer run fmt
composer run fmt
git add .
9 changes: 1 addition & 8 deletions src/OpenBreweryDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
*/
final class OpenBreweryDb
{
/**
* Current version of the library.
*/
private ?Version $version = null;

/**
* Creates a new default client instance.
*/
Expand All @@ -42,8 +37,6 @@ public static function builder(): Builder
*/
public function getVersion(): Version
{
$this->version ??= new Version();

return $this->version;
return Version::current();
}
}

0 comments on commit 1e60695

Please sign in to comment.