Skip to content

Commit

Permalink
Bail early to prevent conflict with subdependency
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed May 10, 2024
1 parent 03836b4 commit c80ab3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mantle/support/helpers/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

namespace Mantle\Support\Helpers;

// Bail early if the helper functions are already loaded.
if ( function_exists( __NAMESPACE__ . '\invalid_hook_removal' ) ) {
return;
}

require_once __DIR__ . '/internals.php';
require_once __DIR__ . '/helpers-array.php';
require_once __DIR__ . '/helpers-core-objects.php';
Expand Down

0 comments on commit c80ab3d

Please sign in to comment.