Skip to content

Commit d97da11

Browse files
committed
.php-cs-fixer.cache added to .gitignore to avoid committing temporary fixer cache files
1 parent f2be65b commit d97da11

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ yarn-error.log
3333
###< symfony/webpack-encore-bundle ###
3434

3535
###> friendsofphp/php-cs-fixer ###
36-
/.php-cs-fixer.php
37-
/.php-cs-fixer.cache
36+
.php-cs-fixer.php
37+
.php-cs-fixer.cache
3838
###< friendsofphp/php-cs-fixer ###

CHANGELOG.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [1.2.2] - 2025-04-09
99

10-
### Code Style
10+
### Added
1111

12-
- Improved PHP-CS-Fixer configuration:
13-
- Added full rule set aligned with PHP 8.3 best practices.
14-
- Defined and enforced strict, explicit code style rules across the entire codebase.
15-
- Applied PHP-CS-Fixer to refactor and standardize formatting across multiple PHP files.
16-
- Introduced `.editorconfig` to define consistent formatting rules across editors:
17-
- Enforces 4-space indentation for PHP, 2 spaces for YAML, JSON, JS.
12+
- `.php-cs-fixer.cache` added to `.gitignore` to avoid committing temporary fixer cache files.
13+
- Code Style Enforcement:
14+
- Introduced [Husky](https://typicode.github.io/husky) to run style checks automatically before each commit.
15+
- Configured a `pre-commit` Git hook to run `composer cs-check` and block commits if style violations are detected.
16+
- `.editorconfig` added to enforce consistent formatting across editors:
17+
- Enforces 4-space indentation for PHP, 2 spaces for YAML, JSON, and JS files.
1818
- Uses LF line endings and trims trailing whitespace.
19-
- Ensures consistent newline behavior and UTF-8 encoding.
19+
- Ensures consistent newline endings and UTF-8 encoding.
2020

21-
### Tooling
21+
### Changed
2222

23-
- Added [Husky](https://typicode.github.io/husky) to enforce code style checks before commits.
24-
- Configured a `pre-commit` Git hook to automatically run `composer cs-check`.
25-
- Commits are now blocked if PHP-CS-Fixer detects style violations, ensuring consistent formatting across the team.
23+
- Enhanced PHP-CS-Fixer configuration:
24+
- Added full rule set aligned with PHP 8.3 best practices.
25+
- Enforced stricter and explicit code style across the codebase.
26+
- Applied PHP-CS-Fixer rules to refactor and reformat multiple PHP files for consistency.
2627

2728
## [1.2.1] - 2025-04-08
2829

0 commit comments

Comments
 (0)