Skip to content

Commit

Permalink
Merge pull request #1 from wedevelopnl/feature/phpstan-property-type
Browse files Browse the repository at this point in the history
Add PHPStan Type Hinting to Class Property
  • Loading branch information
zanbaldwin authored Jul 11, 2024
2 parents b3e3fed + 75faa22 commit d8c73a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Entity/Subject.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#[ODM\EmbeddedDocument]
readonly class Subject
{
/** @var class-string */
#[ODM\Field(type: MongoType::STRING)]
public string $class;

Expand Down

0 comments on commit d8c73a4

Please sign in to comment.