diff --git a/src/Support/Generators/RelationPropertyGenerator.php b/src/Support/Generators/RelationPropertyGenerator.php index 422609b..68e6938 100644 --- a/src/Support/Generators/RelationPropertyGenerator.php +++ b/src/Support/Generators/RelationPropertyGenerator.php @@ -11,7 +11,6 @@ use ReflectionIntersectionType; use Illuminate\Database\Eloquent\Model; use Scrumble\TypeGenerator\Interfaces\IPropertyGenerator; -use Scrumble\TypeGenerator\Exceptions\IntersectionReturnTypeNotImplementedException; class RelationPropertyGenerator implements IPropertyGenerator { diff --git a/tests/Models/Bar.php b/tests/Models/Bar.php index 40b7ad1..9b5c851 100644 --- a/tests/Models/Bar.php +++ b/tests/Models/Bar.php @@ -36,4 +36,12 @@ public function unionReturn(): string|int { return ''; } + + /** + * @return string|int + */ + public function unionDocReturn() + { + return ''; + } }