Skip to content

Commit

Permalink
Fix missing namespace declaration for global ns (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion authored Sep 13, 2023
2 parents 64f11fa + 1184501 commit 84efb2a
Showing 1 changed file with 30 additions and 23 deletions.
53 changes: 30 additions & 23 deletions ft-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@
// figuren-theater/ft-platform !
//

// ./wp-config.php
define( 'FT_ROOT_DIR', __DIR__ );
define( 'FT_WP_DIR', '/wp' );

// ./wp-config.default.php
define( 'FT_VENDOR_DIR', FT_ROOT_DIR . '/vendor' );
define( 'FT_VENDOR_URL', 'https://localhost/content/v' ); // Symlinked to DOCROOT/vendor.

// ./wp-config.{{ENV}}.php
define( 'FT_MAINTENANCE_MODE', false );

namespace Figuren_Theater {
/**
* Get Version number of ft-platform
Expand All @@ -31,16 +20,34 @@
function get_platform_version() : string {}
}

//
// figuren-theater/ft-maitenance !
//
namespace {
//
// figuren-theater/ft-platform !
//

// ./wp-config.php
define( 'FT_ROOT_DIR', __DIR__ );
define( 'FT_WP_DIR', '/wp' );

// ./content/mu-plugins/FT/ft-maintenance/inc/mode/namespace.php
// ./content/mu-plugins/FT/ft-maintenance/inc/mode/error-template.php
// ./content/db-error.php
// ./content/maintenance.php
// ./content/php-error.php
define( 'FT_ERROR_MAIL_TO', 'f.t web-Crew <[email protected]>' );
define( 'FT_ERROR_MAIL_FROM', '[email protected]' );
define( 'FT_ERROR_MAIL_INTERVAL', 300 );
define( 'FT_ERROR_SUPPRESS_EMAIL', true );
// ./wp-config.default.php
define( 'FT_VENDOR_DIR', FT_ROOT_DIR . '/vendor' );
define( 'FT_VENDOR_URL', 'https://localhost/content/v' ); // Symlinked to DOCROOT/vendor.

// ./wp-config.{{ENV}}.php
define( 'FT_MAINTENANCE_MODE', false );

//
// figuren-theater/ft-maitenance !
//

// ./content/mu-plugins/FT/ft-maintenance/inc/mode/namespace.php
// ./content/mu-plugins/FT/ft-maintenance/inc/mode/error-template.php
// ./content/db-error.php
// ./content/maintenance.php
// ./content/php-error.php
define( 'FT_ERROR_MAIL_TO', 'f.t web-Crew <[email protected]>' );
define( 'FT_ERROR_MAIL_FROM', '[email protected]' );
define( 'FT_ERROR_MAIL_INTERVAL', 300 );
define( 'FT_ERROR_SUPPRESS_EMAIL', true );

}

0 comments on commit 84efb2a

Please sign in to comment.