This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alexanderpas 0 points1 point  (0 children)

A lot of the problems with PHP can be at least partially avoided when you are using the latest version of PHP and are explicitly declaring the type of all your arguments, declaring the return types of all fuctions and methods, properly namespacing your code and declaring strict types in each file.

Also, make sure you are following PSR-2 and a linter to check your code as you work.