Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Classmetadata generic #171

Merged
merged 2 commits into from
Apr 24, 2021
Merged

Conversation

franmomu
Copy link
Contributor

Last bit of #159

This allows static analysis tools to understand the underlying type
of object that a ClassMetada holds.
@greg0ire
Copy link
Member

@orklah please review

@greg0ire greg0ire added this to the 2.2.0 milestone Apr 22, 2021
*/
public function __construct(string $className)
{
$this->className = $className;
}

/**
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove that?

Copy link
Contributor Author

@franmomu franmomu Apr 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this class implements ClassMetadata and ClassMetadata::getName() already has the proper docblock.

https://github.com/doctrine/persistence/pull/171/files#diff-2d04993be2c5f1b2168b04befaa7921df5ec3816fae3cabd7dd084e2686ede43R20

I could add {@inheritDoc}.

@greg0ire greg0ire merged commit ffeaf9d into doctrine:2.2.x Apr 24, 2021
@greg0ire
Copy link
Member

Thanks @franmomu !

@franmomu franmomu deleted the classmetadata_generic branch April 24, 2021 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants