1
0
Fork 0
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:
lukinovec 2023-04-14 12:43:35 +02:00
parent 82fe91eba2
commit 411f454aaa
12 changed files with 21 additions and 25 deletions

View file

@ -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() ?? [];