[BUGFIX] PHP 7.1: Non-numeric value encountered