Skip to content

Commit 7b1e4eb

Browse files
committed
feat: adds property array types
1 parent 3dfd5fe commit 7b1e4eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Models/Model.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ abstract class Model implements ModelInterface, Arrayable, JsonSerializable {
2525
*
2626
* @var array<string,string|array{0:string,1:mixed}>
2727
*/
28-
protected static $properties = [];
28+
protected static array $properties = [];
2929

3030
/**
3131
* The model relationships assigned to their relationship types.
3232
*
3333
* @var array<string,string>
3434
*/
35-
protected static $relationships = [];
35+
protected static array $relationships = [];
3636

3737
/**
3838
* Relationships that have already been loaded and don't need to be loaded again.
3939
*
4040
* @var array<string,Model|list<Model>|null>
4141
*/
42-
private $cachedRelations = [];
42+
private array $cachedRelations = [];
4343

4444
/**
4545
* Constructor.

0 commit comments

Comments
 (0)