Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,20 @@
"@composer exec -- php-cs-fixer fix --dry-run --diff"
],
"test": [
"@phpstan:smoke",
"@phpstan",
"@phpunit"
],
"test:ci": [
"@phpstan:smoke",
"@phpstan:ci",
"@phpunit"
],
"phpunit": "@composer exec -- phpunit",
"phpunit:coverage": "@composer exec -- phpunit --coverage-clover coverage.xml",
"phpstan": "@composer exec -- phpstan --memory-limit=256M",
"phpstan:ci": "@composer exec -- phpstan --memory-limit=256M --no-progress --error-format=github",
"phpstan:smoke": "@composer exec -- phpstan --memory-limit=256M --no-progress --configuration=tests/smoke/phpstan-smoke.neon.dist",
"rector": [
"@composer exec -- rector",
"@lint"
Expand Down
1 change: 1 addition & 0 deletions rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ parametersSchema:
]))
])
attributeRequirements: structure([
excludedClasses: listOf(string())
attributeDefinitions: listOf(structure([
attribute: string()
requires: listOf(string())
Expand Down
13 changes: 13 additions & 0 deletions tests/smoke/fixture.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types=1);

/**
* PHPStan Rules
*
* @package PHPStan Rules
* @author IWF Web Solutions <web-solutions@iwf.ch>
* @copyright Copyright (c) 2025-2026 IWF Web Solutions <web-solutions@iwf.ch>
* @license https://github.com/iwf-web/phpstan-rules/blob/main/LICENSE.txt MIT License
* @link https://github.com/iwf-web/phpstan-rules
*/
// Minimal fixture analysed by the smoke phpstan run. Its only purpose is to
// trigger PHPStan's schema validation against rules.neon during container boot.
7 changes: 7 additions & 0 deletions tests/smoke/phpstan-smoke.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
includes:
- ../../rules.neon

parameters:
level: 0
paths:
- fixture.php
Loading