mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 07:02:13 +00:00
Fixed deprication warnings
This commit is contained in:
@@ -167,7 +167,7 @@ abstract class LoadableRoute extends Route implements ILoadableRoute
|
||||
|
||||
if (stripos($url, $param1) !== false || stripos($url, $param) !== false) {
|
||||
/* Add parameter to the correct position */
|
||||
$url = str_ireplace([sprintf($param1, $param), sprintf($param2, $param)], $value, $url);
|
||||
$url = str_ireplace([sprintf($param1, $param), sprintf($param2, $param)], (string)$value, $url);
|
||||
} else {
|
||||
/* Parameter aren't recognized and will be appended at the end of the url */
|
||||
$url .= $value . '/';
|
||||
|
||||
Reference in New Issue
Block a user