Skip to content

Conversation

@dbu
Copy link
Contributor

@dbu dbu commented Nov 25, 2021

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets mentioned in #215
Documentation -
License MIT

What's in this PR?

Adjust to new phpstan version, cleanup some phpdoc

@dbu dbu requested a review from Nyholm November 25, 2021 15:44
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you.

It looks great. Just remove phpstan from composer.json and I’ll be happy.

}

$time = call_user_func($this->exceptionDelay, $request, $exception, $this->retryStorage[$chainIdentifier]);
\assert(is_int($time));
Copy link
Member

Choose a reason for hiding this comment

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

Will this benefit the user?
If it is just to convince phpstan we can add comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

Better to add a /**@var int */ or whatever. Agreed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this way the user gets a warning if the user func returns the wrong thing.

but i can also put the annotation.

@dbu dbu merged commit 461b711 into master Nov 26, 2021
@dbu dbu deleted the phpstan branch November 26, 2021 14:55
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.

4 participants