v-wordpress-plugin-updater/.github/phpstan-bootstrap.php
copilot-swe-agent[bot] ea8a223a18 Fixed all code quality issues: 95 PHPStan errors reduced to 0, all PHPCS violations resolved
Co-authored-by: djav1985 <174835544+djav1985@users.noreply.github.com>
2025-09-11 20:59:38 +00:00

20 lines
590 B
PHP

<?php
// Repo root directory
$rootDir = dirname(__DIR__);
// Load Composer autoload from root
$autoloadFiles = [
$rootDir . '/vendor/autoload.php',
$rootDir . '/update-api/vendor/autoload.php',
];
foreach ($autoloadFiles as $file) {
if (is_file($file)) {
require $file;
}
}
// Define constants for PHPStan
if (!defined('VONTMENT_KEY')) define('VONTMENT_KEY', '');
if (!defined('VONTMENT_PLUGINS')) define('VONTMENT_PLUGINS', '');
if (!defined('VONTMENT_THEMES')) define('VONTMENT_THEMES', '');
if (!defined('VONTMNT_API_URL')) define('VONTMNT_API_URL', '');