mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Confusing parameter name $classes #6573
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mvorisek on GitHub (Dec 2, 2020).
See
SchemaTool::getUpdateSchemaSql(array $classes)method.$classesrepresents array ofClassMetadata, no string class names.@greg0ire commented on GitHub (Dec 3, 2020):
Indeed:
404edd418b/lib/Doctrine/ORM/Tools/SchemaTool.php (L882-L905)404edd418b/lib/Doctrine/ORM/Tools/SchemaTool.php (L137-L161)The phpdoc could also be improved by using
@psalm-param ClassMetadata[] $classes. Please send a PR.@mvorisek commented on GitHub (Dec 3, 2020):
I also advice to rename the params to
$metadatasas used in other method prototypes.