Use modern PHP syntax and features in all new code

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply

This is a great idea

I agree and it should apply to new commits to master
I agree but I have an actual reservation that I'm going to describe
No votes
Total votes: 15

User avatar
Registered User
Posts: 366
Joined: Fri Jul 08, 2011 9:43 pm

Use modern PHP syntax and features in all new code

Post by JoshyPHP » Sun Jun 16, 2019 3:38 am

Now that phpBB requires a contemporary version of PHP, I suggest that the coding guidelines be updated to take advantage of it.

For instance, if that's not already the case, all new code should use the short array syntax.

All new code should use scalar typing where available and return typing too. Possibly with strict_types if possible. Again, this is for new files, new classes and new interfaces so backward compatibility is not a big concern.

Post Reply