1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-09-20 15:34:03 +00:00

Laravel 13.24 support (fix #1474) (#1476)

- We conditionally use either $signature + specifyParameters() in the
  newer versions or just $name in the older versions. There doesn't
  appear to be a single solution that'd work in both versions, likely
  having to do with the constructor override in the trait and how the
  specifyParameters() method behaves differently in this class between
  versions
- Remove unnecessary options from the Run command (the trait adds those)
- Not directly related: make HasTenantOptions accept ...$args
- Unrelated: remove phpstan ignore in TenancyServiceProvider
This commit is contained in:
Samuel Stancl 2026-08-04 20:49:48 -07:00 committed by GitHub
parent 553f57a8ad
commit e0990a438c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 9 deletions

View file

@ -55,9 +55,9 @@ trait HasTenantOptions
});
}
public function __construct()
public function __construct(mixed ...$args)
{
parent::__construct();
parent::__construct(...$args);
$this->specifyParameters();
}