Skip to content

Commit

Permalink
PHP 8.1: fix passing null to non-nullable deprecation (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafauysal committed Oct 4, 2023
1 parent 73dbe08 commit 3a892c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concat-utils.php
Expand Up @@ -24,7 +24,7 @@ public static function realpath( $url, $site_url ) {
$url_path = parse_url( $url, PHP_URL_PATH );
$site_url_path = parse_url( $site_url, PHP_URL_PATH );
// To avoid partial matches; subdir install at `/wp` would match `/wp-includes`
$site_url_path = trailingslashit( $site_url_path );
$site_url_path = is_null( $site_url_path ) ? '/' : trailingslashit( $site_url_path );

// If this is a subdirectory site, we need to strip off the subdir from the URL.
// In a multisite install, the subdir is virtual and therefore not needed in the path.
Expand Down

0 comments on commit 3a892c9

Please sign in to comment.