PHP: removed built-in type real
The main purpose of this PR is to fix the situation where NetBeans generates a real type and uses it as a native return type.
In this PR:
- deleted the built-in type
real(php does not have a built-inrealtype: 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
- new tests added
- fixes generation of return type
realinstead offloatfor a method when overriding a base class method with an autocomplete - fixes generation of return type
realinstead offloatfor a function in phpDoc
This PR is similar to #5294.
@mbien Can I ask for the tests to be restarted? I don't have the ability to set the label before creating the PR.
Note: If we already did something similar in #5294, then it is unfortunate, as I explained above. Ideally, we should revert the API change and follow the steps I described.
OTOH, not sure how many plugins exist that are affected by this change and therefore can be broken. Also, the fix should be easy, but we must avoid of such API changes, definitely.
CC @junichi11
Note: If we already did something similar in #5294, then it is unfortunate, as I explained above. Ideally, we should revert the API change and follow the steps I described.
By similarity to #5294, I was referring to the purpose of that PR. If I understood it correctly, there were no changes to the public api in that PR.
Made the suggested corrections.
@junichi11 Forgot to set milestone for this PR, or is it optional? Thank you!