zend_api: Use return true / return false for functions returning bool#21661
zend_api: Use return true / return false for functions returning bool#21661LamentXU123 wants to merge 2 commits intophp:masterfrom
Conversation
iluuu1994
left a comment
There was a problem hiding this comment.
You missed quite a few of them.
This kind of change should be done in bulk with Coccinelle and if Coccinelle doesn't catch all of them, it should be investigated why. The main reason I only did |
|
Yea I directly use Coccinelle for this. Now, Lets change the missed case and I plan to open one PR to change these cases in bulk in the future @TimWolla Seems like The Coccinelle script in the linked PR couldn't match cases wit different indent. e.g. It can't match See if this would be better instead: |
|
Oh, also I'm curious about why we are doing these refactors (I submit this just because I saw someone else did XD) .If benefits are little I think maybe we could avoid this code churn🤔 |
same as #21649