Fixed problem with substr backwards compatibility
Fixed problem with substr backwards compatibility

https://www.php.net/manual/en/migration70.incompatible.php#119151

substr behavior has changed from PHP 5.6 to PHP 7.0
zendframework/zend-uri