Skip to content

Commit a267df1

Browse files
umherirrenderWMDE bot
authored andcommitted
Use real type hints for class properties holding type hinted arguments
Provided arguments are already type-hinted on the construtor and it is safe to use the same type on the class property Change-Id: Ibb62443f02b4bf767c69d2f31709f9afe5afe1d2
1 parent 9f1c456 commit a267df1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Entity/BasicEntityIdParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class BasicEntityIdParser implements EntityIdParser {
1414

15-
private $idParser;
15+
private DispatchingEntityIdParser $idParser;
1616

1717
public function __construct() {
1818
$this->idParser = new DispatchingEntityIdParser( self::getBuilders() );

src/Entity/EntityIdValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class EntityIdValue extends DataValueObject {
1919

20-
private $entityId;
20+
private EntityId $entityId;
2121

2222
public function __construct( EntityId $entityId ) {
2323
$this->entityId = $entityId;

0 commit comments

Comments
 (0)