Skip to content

Commit

Permalink
php 8.* deprecation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NielBuys committed Jul 11, 2023
1 parent 8bc0e71 commit cc7e70f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/core/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ function remove_invisible_characters($str, $url_encoded = TRUE)

do
{
$str = preg_replace($non_displayables, '', $str, -1, $count);
$str = preg_replace($non_displayables, '', $str??'', -1, $count);
}
while ($count);

Expand Down
2 changes: 1 addition & 1 deletion system/core/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ public function uri_string()
*/
public function ruri_string()
{
return ltrim(load_class('Router', 'core')->directory, '/').implode('/', $this->rsegments);
return ltrim((string) load_class('Router', 'core')->directory, '/').implode('/', $this->rsegments);
}

}

0 comments on commit cc7e70f

Please sign in to comment.