Changeset 62292
- Timestamp:
- 05/02/2026 05:16:01 AM (2 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
-
composer.json (modified) (1 diff)
-
tests/phpstan/GlobalDocBlockVisitor.php (added)
-
tests/phpstan/base.neon (modified) (2 diffs)
-
tests/phpstan/bootstrap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r62271 r62292 33 33 "lock": false 34 34 }, 35 "autoload-dev": { 36 "psr-4": { 37 "WordPress\\PHPStan\\": "tests/phpstan/" 38 } 39 }, 35 40 "scripts": { 36 41 "phpstan": "@php ./vendor/bin/phpstan analyse --memory-limit=2G", -
trunk/tests/phpstan/base.neon
r61873 r62292 4 4 # 5 5 # https://phpstan.org/config-reference 6 7 services: 8 # Bridges WordPress core's `@global Type $varname` function docblock convention to 9 # PHPStan's variable type resolution. See tests/phpstan/GlobalDocBlockVisitor.php. 10 - 11 class: WordPress\PHPStan\GlobalDocBlockVisitor 12 tags: 13 - phpstan.parser.richParserNodeVisitor 6 14 7 15 parameters: … … 91 99 - ../../src/wp-trackback.php 92 100 - ../../src/xmlrpc.php 101 - GlobalDocBlockVisitor.php 93 102 bootstrapFiles: 94 103 - bootstrap.php -
trunk/tests/phpstan/bootstrap.php
r61699 r62292 1 1 <?php 2 2 /** 3 * Defines default WordPress constants for discovery.3 * Defines default WordPress constants for PHPStan discovery. 4 4 * 5 5 * Mocks the constant initiation that would normally happen in wp-includes/wp-settings.php. 6 * 7 * Loaded as a `bootstrapFile` by PHPStan; see `base.neon`. 6 8 */ 7 9
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)