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

Add phpdoc to Exception properties #3511

Open
wants to merge 1 commit into
base: 1.12.x
Choose a base branch
from

Conversation

VincentLanglet
Copy link
Contributor

Not sure if it was the expected way to solve phpstan/phpstan#11761

Closes phpstan/phpstan#11761

/** @var string */
protected $message;

/** @var mixed */
Copy link
Contributor

Choose a reason for hiding this comment

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

The only exception type I am aware of which doesnt has a int code is PDOException

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes me too.

But getCode is typed as returning mixed... so I think I have to match this

I'll wait for ondrej decision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants