Automatic strict types in PHP 7
autostrict is a Zend Extension that can force all code to be strict, because yolo!
Note that due to a little bug in PHP, this module only works from PHP >= 7.0.3.
Use something like the following to build
git clone https://github.com/krakjoe/autostrict cd autostrict phpize ./configure make sudo make install
Add the following to your configuration to enable the osum:
autostrict may also be loaded with
extension directive, but it's correct to use
You can disable strictness on a per-file basis using the configuration directive
autostrict.ignore should be a comma separated list of regex patterns.
Note that, you may have to jump through hoops because regex and configuration don't really mix very well !
If you load the module, autostrict is enabled by default.
To disable autostrict use the configuration directive