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

Require bool and int in PHPDoc to be consistent with PHP's scalar types #15

Merged
merged 1 commit into from
May 5, 2017

Conversation

VasekPurchart
Copy link
Member

@VasekPurchart VasekPurchart commented Apr 28, 2017

When Consistence standard was first assembled (around 2013) there was no inclination in PHP, which form (short/long) will be preferred and there were used differently in various places. So for consistence was the choice to go with the more verbose, as stated in the standard.

However with the introduction of scalar type hints in PHP 7, which support only short variants, it is clear which variant is preferred now and hopefully PHP will stick with it in other places.

@VasekPurchart VasekPurchart changed the base branch from master to remove-separate-uses May 5, 2017 10:29
@VasekPurchart VasekPurchart changed the base branch from remove-separate-uses to master May 5, 2017 10:29
@VasekPurchart VasekPurchart merged commit 9d94b03 into master May 5, 2017
@VasekPurchart VasekPurchart deleted the short-scalars branch May 5, 2017 10:31
@VasekPurchart VasekPurchart added the features Changes in feature set (including removals) label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features Changes in feature set (including removals)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant