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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## [2.2.11] - 2026-01-08

### Changed
- **PHP analysis staged targets renamed** for consistent `action/staged` pattern:
- `php/phpcs/staged` → `php/phpcs/check/staged`
- `php/phpstan/staged` → `php/phpstan/analyse/staged`
- `php/psalm/staged` → `php/psalm/analyse/staged`

### Added
- **`php/phpcs/fix/staged`**: Run PHP Code Beautifier on staged PHP files only

## [2.2.10] - 2026-01-06

### Fixed
Expand Down
5 changes: 4 additions & 1 deletion modules/php/phpcs/phpcs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ php/phpcs/fix: ## Run PHP Code Beautifier to auto-fix (phpcs_files= for paths, p
$(eval $@_cmd := $(phpcbf_bin) $(call phpcs_build_args))
$(call php_invoke,$($@_cmd))

php/phpcs/staged: ## Run PHP CodeSniffer on staged PHP files only
php/phpcs/check/staged: ## Run PHP CodeSniffer on staged PHP files only
$(call php_run_on_staged,$(phpcs_bin) -s)

php/phpcs/fix/staged: ## Run PHP Code Beautifier on staged PHP files only
$(call php_run_on_staged,$(phpcbf_bin))

endif # __MB_TEST_DISCOVERY__

endif # __MB_MODULES_PHP_PHPCS__
2 changes: 1 addition & 1 deletion modules/php/phpstan/phpstan.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ php/phpstan/analyse: ## Run PHPStan analysis (phpstan_files= for paths, phpstan_
$(call mb_printf_info,Results saved to $(phpstan_output_file))\
)

php/phpstan/staged: ## Run PHPStan on staged PHP files only
php/phpstan/analyse/staged: ## Run PHPStan on staged PHP files only
$(call php_run_on_staged,$(phpstan_bin) analyse)

endif # __MB_TEST_DISCOVERY__
Expand Down
2 changes: 1 addition & 1 deletion modules/php/psalm/psalm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ php/psalm/analyse: ## Run Psalm analysis (psalm_files= for paths, psalm_args= fo
$(call mb_printf_info,Results saved to $(psalm_output_file))\
)

php/psalm/staged: ## Run Psalm on staged PHP files only
php/psalm/analyse/staged: ## Run Psalm on staged PHP files only
$(call php_run_on_staged,$(psalm_bin))

endif # __MB_TEST_DISCOVERY__
Expand Down