You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
There's a PHPDoc block in public function getTranslations(): Collection in TranslatableInterface
The method returns TranslationInterface[], but the first PHPDoc section states @return Collection|TranslatableInterface[]
Forced us to add PHPDoc in our code for proper type hints.
The text was updated successfully, but these errors were encountered:
This PR was merged into the 1.9-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file -->
| Related tickets | fixes#371
| License | MIT
Commits
-------
bb28c34 Fix phpdoc for getTranslations
Sylius docs version: 1.x / latest
https://github.com/Sylius/SyliusResourceBundle/blob/master/src/Component/Model/TranslatableInterface.php#L21
Description
There's a PHPDoc block in
public function getTranslations(): Collection
inTranslatableInterface
The method returns
TranslationInterface[]
, but the first PHPDoc section states@return Collection|TranslatableInterface[]
Forced us to add PHPDoc in our code for proper type hints.
The text was updated successfully, but these errors were encountered: