Skip to content
Merged
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
2 changes: 1 addition & 1 deletion lib/public/AppFramework/Db/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class Entity {
public int|string|null $id = null;
private array $_updatedFields = [];
/** @psalm-param $_fieldTypes array<string, Types::*> */
private array $_fieldTypes = ['id' => 'integer'];
protected array $_fieldTypes = ['id' => 'integer'];

/**
* Simple alternative constructor for building entities from a request
Expand Down
2 changes: 1 addition & 1 deletion lib/public/AppFramework/Db/SnowflakeAwareEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class SnowflakeAwareEntity extends Entity {
protected ?Snowflake $snowflake = null;

/** @psalm-param $_fieldTypes array<string, Types::*> */
private array $_fieldTypes = ['id' => Types::STRING];
protected array $_fieldTypes = ['id' => Types::STRING];

public function setId($id): void {
throw new \LogicException('Use generated id to set a new id to the Snowflake aware entity.');
Expand Down
Loading