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

Introduce isDeprecated to CallableParametersAcceptor #3616

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

Conversation

kamil-zacek
Copy link
Contributor

No description provided.

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

Also please review all new CallableType to make sure we haven't missed a place where it should be added.

@@ -143,6 +143,11 @@ public function isPure(): TrinaryLogic
return $certainCount > 0 ? TrinaryLogic::createNo() : TrinaryLogic::createMaybe();
}

public function isDeprecated(): TrinaryLogic
{
return TrinaryLogic::createNo();
Copy link
Member

Choose a reason for hiding this comment

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

This is not the case. First-class callables like Foo::method(...) are resolved to ClosureType so the deprecated-ness should be carried over.

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