Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function setId(mixed $id): static
/**
* Generate an unique identifier for the model
*/
protected function generateId()
protected function generateId(): void
{
$characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$charactersLength = strlen($characters);
Expand Down Expand Up @@ -152,4 +152,4 @@ public function getField(string $key): mixed
return $this->additionalFields[$key] ?? null;
}
}
}
}
4 changes: 2 additions & 2 deletions src/Driver/DriverRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DriverRegistry implements DriverRegistryInterface
*
* @param DriverInterface $driver
*/
public function registerDriver(DriverInterface $driver)
public function registerDriver(DriverInterface $driver): void
{
$this->drivers[$driver->getId()] = $driver;
}
Expand All @@ -50,7 +50,7 @@ public function registerDriver(DriverInterface $driver)
* @param string $id
* @param string $class
*/
public function registerDriverClass(string $id, string $class)
public function registerDriverClass(string $id, string $class): void
{
$this->classes[$id] = $class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ModelCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ModelCollection implements Iterator, Countable, ArrayAccess
* @param TModel $model
* @noinspection PhpDocSignatureInspection
*/
public function add(ModelInterface $model)
public function add(ModelInterface $model): void
{
$this->models[] = $model;
}
Expand Down Expand Up @@ -131,4 +131,4 @@ public function offsetUnset(mixed $offset): void
unset($this->models[$offset]);
}

}
}
4 changes: 2 additions & 2 deletions src/Query/WhereGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(array $conditions = [], int $conjunction = self:: AN
*
* @param WhereCondition|WhereGroup $conditionOrGroup
*/
public function add(WhereCondition|WhereGroup $conditionOrGroup)
public function add(WhereCondition|WhereGroup $conditionOrGroup): void
{
$this->group[] = $conditionOrGroup;
}
Expand Down Expand Up @@ -128,4 +128,4 @@ public function count(): int
{
return count($this->group);
}
}
}
Loading