Open tychokamphuis-aqqo opened 4 weeks ago
I’m encountering the same issues as well. Looking forward to seeing this improvement.
Might also be worth updating Database/Eloquent/Concerns/HasRelationships
currently they return:
/**
* Define a one-to-one relationship.
*
* @param string $related
* @param string|array|null $foreignKey
* @param string|array|null $localKey
*
* @return \Awobaz\Compoships\Database\Eloquent\Relations\HasOne
*/
When you'd expect something like:
/**
* Define a one-to-one relationship.
*
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
*
* @param class-string<TRelatedModel> $related
* @param string|array|null $foreignKey
* @param string|array|null $localKey
* @return \Awobaz\Compoships\Database\Eloquent\Relations\HasOne<TRelatedModel, $this>
*/
Thank you for all the great work on this project! This PR updates the @extends PHPDocs to align with the latest PHPDoc standards in Laravel, ensuring improved consistency and compatibility.
Please let me know if there’s anything you'd like adjusted or further explained.
Thanks again!