Skip to content

Commit

Permalink
Assert that a class string not implementing ElementInterface is treat…
Browse files Browse the repository at this point in the history
…ed the same as a string literal

Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jan 10, 2024
1 parent dcd82ee commit 60f1cea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/StaticAnalysis/FormElementManagerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ public function getReturnsObjectOfClassWhenGivenFQCN(): NewProductForm
{
return $this->manager->get(NewProductForm::class);
}

public function getReturnsElementInterfaceWhenGivenInvalidClassStringType(): ElementInterface
{
return $this->manager->get(self::class);
}
}

0 comments on commit 60f1cea

Please sign in to comment.