Skip to content

Unificate message for "clone method" return type error #3835

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

Closed
wants to merge 13 commits into from

Conversation

rjhdby
Copy link

@rjhdby rjhdby commented Feb 15, 2019

3 identical checks in one code block with uniformed messages

Constructor %s::%s() cannot be static
Destructor %s::%s() cannot be static
Clone method %s::%s() cannot be static
Constructor %s::%s() cannot declare a return type
Destructor %s::%s() cannot declare a return type

But for clone method

%s::%s() cannot declare a return type

without "Clone method" prefix

Copy link
Contributor

@carusogabriel carusogabriel left a comment

Choose a reason for hiding this comment

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

I believe this can go into PHP-7.4.

@cmb69
Copy link
Member

cmb69 commented Feb 15, 2019

Thanks! Applied to PHP-7.4 as d6a53ed.

@cmb69 cmb69 closed this Feb 15, 2019
@guilliamxavier
Copy link
Contributor

What about the equivalent in Zend/zend_API.c? BTW why are these checks duplicated in 2 files? (noticed in #4177)

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