Skip to content

Commit

Permalink
Release 7.50.1
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 19, 2024
1 parent 0c8fb37 commit 030ffbc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG-7.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`.

## 7.50.1

Released: 2024-12-19

### Changes

* Add `Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces()` to flush cached namespaces and classes during installation.

## 7.50.0

Released: 2024-12-15
Expand Down
13 changes: 13 additions & 0 deletions src/Workbench/Workbench.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,19 @@ public static function detectNamespace(string $type, bool $force = false): ?stri
public static function flush(): void
{
static::$cachedConfiguration = null;

static::flushCachedClassAndNamespaces();
}

/**
* Flush the cached namespace configuration.
*
* @return void
*
* @codeCoverageIgnore
*/
public static function flushCachedClassAndNamespaces(): void
{
static::$cachedUserModel = null;
static::$cachedNamespaces = [];

Expand Down

0 comments on commit 030ffbc

Please sign in to comment.