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

Fix some tests

This commit is contained in:
Samuel Štancl 2019-09-18 19:48:15 +02:00
parent 1f88a1ff94
commit 12c05c0af6
6 changed files with 53 additions and 95 deletions

View file

@ -85,7 +85,7 @@ class Tenant implements ArrayAccess
protected function persisted($persisted = null)
{
if (gettype($persisted) === 'bool') {
if (gettype($persisted) === 'boolean') {
$this->persisted = $persisted;
return $this;
@ -94,6 +94,11 @@ class Tenant implements ArrayAccess
return $this;
}
public function isPersisted(): bool
{
return $this->persisted;
}
/**
* Assign domains to the tenant.
*