-
Notifications
You must be signed in to change notification settings - Fork 823
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
PHP: removed built-in type boolean #5294
PHP: removed built-in type boolean #5294
Conversation
added php label for full test suite. restarting CI. |
Proposed change looks good to me. Let's wait for @junichi11's opinion. |
just as reminder: feature freeze for NB 17 is on the 18th, there still is time but not a lot if this is intended for NB 17. |
Just as a heads up. phpDocumentator explicitly lists:
but also writes:
This is contradictory and who is right? Can |
PHPDoc types accept also type aliases but these aliases can't be used as native type. This PR fixes case when NetBeans generate type "boolean" and use it as native return type for PHP 7.0 or newer. |
I seem to have rushed the PR. Sorry for wasting your time. |
Agree. It would be better. |
If I get it right, the ideal situation here would be this one:
Does it make sense? Would it be possible to implement it? |
9f873ba
to
cf5698c
Compare
Updated the PR so that it does not affect the phpDoc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me, but please, let @junichi11 approve it as well. Thank you.
@junichi11 I'm taking that as you making the call that it belongs in delivery! 😄 Adding milestone and do-not-merge pending rebasing of the PR so we can track. 17-rc3 is the last guaranteed release candidate unless we have urgent fixes, so ideally needs to be in a position I can merge within the next 24hrs. |
- deleted the built-in type boolean (php does not have a built-in boolean type: https://www.php.net/manual/en/language.types.intro.php Also see the warning under "Scalar Types": https://www.php.net/manual/en/language.types.declarations.php) - fixed broken tests - fixed issues: - PHP: Generates the return type boolean instead of bool for a method when overriding a base class method with an autocomplete apache#5283, - PHP: Generates the return type boolean instead of bool for a function in phpDoc apache#5284 - new tests for fixed issues have been added - does not affect phpDoc
cf5698c
to
3436a10
Compare
I changed the commit message and rebased it on delivery. @junichi11, @neilcsmith-net please check if I did it right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work!
@neilcsmith-net Thank you for your help :) @tmysik The release team (@neilcsmith-net ) merges this. BTW, CI doesn't work, right? |
Thanks! Looks good, merging.
@junichi11 can be manually triggered by locking and unlocking the conversation as above if needed. It's a "hidden" feature! |
Thanks! |
@neilcsmith-net I see. Thank you! |
What was done in this PR:
boolean
( php does not have a built-in
boolean
type: https://www.php.net/manual/en/language.types.intro.phpAlso see the warning under "Scalar Types": https://www.php.net/manual/en/language.types.declarations.php)