mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 03:54:02 +00:00
Delete intersection types
This commit is contained in:
parent
82fe91eba2
commit
411f454aaa
12 changed files with 21 additions and 25 deletions
|
|
@ -138,7 +138,8 @@ class UpdateSyncedResource extends QueueableListener
|
|||
});
|
||||
}
|
||||
|
||||
protected function getAttributesForCreation(Model&Syncable $model): array
|
||||
/** @param Syncable&Model $model */
|
||||
protected function getAttributesForCreation(Syncable $model): array
|
||||
{
|
||||
if (! $model->getSyncedCreationAttributes()) {
|
||||
// Creation attributes are not specified so create the model as 1:1 copy
|
||||
|
|
@ -165,7 +166,7 @@ class UpdateSyncedResource extends QueueableListener
|
|||
/**
|
||||
* Split the attribute names (sequential index items) and default values (key => values).
|
||||
*/
|
||||
protected function getAttributeNamesAndDefaultValues(Model&Syncable $model): array
|
||||
protected function getAttributeNamesAndDefaultValues(Syncable $model): array
|
||||
{
|
||||
$syncedCreationAttributes = $model->getSyncedCreationAttributes() ?? [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue