* its invalid to combine `void` with another type
see https://github.com/phpstan/phpstan/issues/4014
* added explicit `return null`, to make phpstan happy and the code more obvious.
* increased phpstan level to 5
* fix: '$subject of function preg_match expects string, int given'