Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
rjhdby wants to merge 13 commits into
php:masterphp/php-src:masterfrom
rjhdby:clone_return_type_messagerjhdby/php-src:clone_return_type_messageCopy head branch name to clipboard
Closed

Unificate message for "clone method" return type error#3835
rjhdby wants to merge 13 commits into
php:masterphp/php-src:masterfrom
rjhdby:clone_return_type_messagerjhdby/php-src:clone_return_type_messageCopy head branch name to clipboard

Conversation

@rjhdby
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Member

cmb69 commented Feb 15, 2019

Thanks! Applied to PHP-7.4 as d6a53ed.

@cmb69 cmb69 closed this Feb 15, 2019
@guilliamxavier
Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.