Skip to content

[skip ci] Amend coding style #9797

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

Merged
merged 3 commits into from
Oct 21, 2022
Merged

[skip ci] Amend coding style #9797

merged 3 commits into from
Oct 21, 2022

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Oct 21, 2022

Drop irrelevant rule about // comments since PHP is C99 + GNU extensions
Add rule about strlen() usage for constant string length calculation

@Girgias Girgias requested a review from cmb69 October 21, 2022 10:40
Drop irrelevant rule about // comments since PHP is C99 + GNU extensions
Add rule about strlen() usage for constant string length calculation
@Girgias Girgias changed the title [skip-ci] Amend coding style [skip ci] Amend coding style Oct 21, 2022
@Girgias Girgias added the Category: Documentation This is for documentation inside php-src, not on php.net label Oct 21, 2022
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you!

I think I would have put this in the Code implementation section, probably just after item 5 (because that also talks about strlen(), although in a different context). It's okay for me to leave it where it is.

I would suggest to renumber to always use 1.. Markdown converters are supposed to handle this anyway, and this saves any renumbering.

@Girgias Girgias merged commit 12abb1f into php:master Oct 21, 2022
@Girgias Girgias deleted the cs-docs branch October 21, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Documentation This is for documentation inside php-src, not on php.net
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants