# auto-alt-text/2.7.0/phpstan-bootstrap.php

Auto Alt Text, version 2.7.0. 25 lines.

- Page: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/phpstan-bootstrap.php
- Raw: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/raw/phpstan-bootstrap.php
- Modified: 2026-01-14T13:38:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/phpstan-bootstrap.php#L10-L20`.

```php
<?php
/**
 * PHPStan bootstrap file
 *
 * This file defines constants that are normally defined in the main plugin file
 * to allow PHPStan to analyze the code without errors.
 */

// Define plugin constants for PHPStan
if (!defined('AATXT_FILE_ABSPATH')) {
    define('AATXT_FILE_ABSPATH', __DIR__ . '/auto-alt-text.php');
}

if (!defined('AATXT_ABSPATH')) {
    define('AATXT_ABSPATH', __DIR__);
}

if (!defined('AATXT_URL')) {
    define('AATXT_URL', 'https://example.com/wp-content/plugins/auto-alt-text/');
}

if (!defined('AATXT_LANGUAGES_RELATIVE_PATH')) {
    define('AATXT_LANGUAGES_RELATIVE_PATH', 'auto-alt-text/languages/');
}

```
