Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Appease phpstan, for real this time
Browse files Browse the repository at this point in the history
mboynes authored Jan 20, 2025
1 parent 8918a6f commit 2f16214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantle/testing/class-utils.php
Original file line number Diff line number Diff line change
@@ -211,7 +211,7 @@ public static function setup_configuration(): void {
$dir = defined( 'WP_TESTS_INSTALL_PATH' ) ? WP_TESTS_INSTALL_PATH : __DIR__;

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
defined( 'ABSPATH' ) || define( 'ABSPATH', Str::trailing_slash( preg_replace( '#/wp-content/.*$#', '/', $dir ) ) );
defined( 'ABSPATH' ) || define( 'ABSPATH', Str::trailing_slash( preg_replace( '#/wp-content/.*$#', '/', (string) $dir ) ) );
defined( 'WP_DEBUG' ) || define( 'WP_DEBUG', true );

defined( 'DB_NAME' ) || define( 'DB_NAME', static::env( 'WP_DB_NAME', static::DEFAULT_DB_NAME ) );

0 comments on commit 2f16214

Please sign in to comment.