mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 12:54:05 +00:00
resolve phpstan issue from CI
This commit is contained in:
parent
72c5d57a4d
commit
52336ddc8f
2 changed files with 6 additions and 2 deletions
|
|
@ -63,7 +63,8 @@
|
|||
"docker-rebuild": "PHP_VERSION=8.1 docker-compose up -d --no-deps --build",
|
||||
"docker-m1": "ln -s docker-compose-m1.override.yml docker-compose.override.yml",
|
||||
"coverage": "open coverage/phpunit/html/index.html",
|
||||
"phpstan": "vendor/bin/phpstan --pro",
|
||||
"phpstan": "vendor/bin/phpstan",
|
||||
"phpstan-pro": "vendor/bin/phpstan --pro",
|
||||
"cs": "php-cs-fixer fix --config=.php-cs-fixer.php",
|
||||
"test": "PHP_VERSION=8.1 ./test --no-coverage",
|
||||
"test-full": "PHP_VERSION=8.1 ./test"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@ class PathTenantResolver extends Contracts\CachedTenantResolver
|
|||
/** @var Route $route */
|
||||
$route = $args[0];
|
||||
|
||||
if ($id = (string) $route->parameter(static::tenantParameterName())) {
|
||||
/** @var string $id */
|
||||
$id = $route->parameter(static::tenantParameterName());
|
||||
|
||||
if ($id) {
|
||||
$route->forgetParameter(static::tenantParameterName());
|
||||
|
||||
if ($tenant = tenancy()->find($id)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue