Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions tests/phpstan/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,13 @@
*/


// Set Translation Tools plugin version.
if ( ! defined( 'TRANSLATION_TOOLS_VERSION' ) ) {
define( 'TRANSLATION_TOOLS_VERSION', '1.6.0' );
}

// Set Translation Tools required PHP version. Needed for PHP compatibility check for WordPress < 5.1.
if ( ! defined( 'TRANSLATION_TOOLS_REQUIRED_PHP' ) ) {
define( 'TRANSLATION_TOOLS_REQUIRED_PHP', '7.4' );
}

// Set Translation Tools development mode.
if ( ! defined( 'TRANSLATION_TOOLS_DEBUG' ) ) {
define( 'TRANSLATION_TOOLS_DEBUG', true );
}


// Require plugin main file.
require_once 'translation-tools.php';
define( 'TRANSLATION_TOOLS_VERSION', '0.0.0' );
define( 'TRANSLATION_TOOLS_REQUIRED_PHP', '0.0.0' );
define( 'TRANSLATION_TOOLS_SETTINGS_VERSION', '0.0.0' );
define( 'TRANSLATION_TOOLS_WP_OPTION', 'translation_tools_settings' );
define( 'TRANSLATION_TOOLS_SETTINGS_PAGE', 'translation-tools' );
define( 'TRANSLATION_TOOLS_TRANSIENTS_PREFIX', 'translation_tools_' );
define( 'TRANSLATION_TOOLS_DIR_URL', 'http://' );
define( 'TRANSLATION_TOOLS_DIR_PATH', '/' );
define( 'TRANSLATION_TOOLS_FILE', 'translation-tools.php' );
define( 'TRANSLATION_TOOLS_DEBUG', true );