Skip to content

Commit

Permalink
Updated Archetype dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <[email protected]>
  • Loading branch information
betterthanclay committed Apr 26, 2024
1 parent 3436b25 commit d845629
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Updated Archetype dependency

## v0.5.4 (2024-04-24)
* Updated Carbon dependency

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class MyCache extends Generic
}
}

Archetype::extend(Store::class, namespace::class);
Archetype::map(Store::class, namespace::class);

$myCache = Stash::load('MyCache'); // Will now use MyApp\MyCache
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"require": {
"php": "^8.1",

"decodelabs/archetype": "^0.2.6",
"decodelabs/archetype": "^0.3",
"decodelabs/atlas": "^0.11.1",
"decodelabs/coercion": "^0.2.6",
"decodelabs/dictum": "^0.6.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Stash/Driver/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function getKeys(string $namespace): array
protected function getPathIndex(
string $pathKey
): int {
return (int)$this->client->get($pathKey);
return Coercion::toInt($this->client->get($pathKey));
}


Expand Down

0 comments on commit d845629

Please sign in to comment.