Skip to content

Conversation

Wimsims
Copy link
Contributor

@Wimsims Wimsims commented Jun 10, 2025

No description provided.

composer.json Outdated
@@ -4,7 +4,8 @@
"license": "MIT",
"description": "Worldia Coding Standards",
"require": {
"friendsofphp/php-cs-fixer": "^3.6"
"friendsofphp/php-cs-fixer": "^3.6",
"ext-json": "*"
Copy link
Contributor Author

@Wimsims Wimsims Jun 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for this addition is php-cs-fixer :

composer why ext-json

Package "ext-json *" found in version "8.3.12".
worldia/coding-standards  dev-master requires ext-json (*)
friendsofphp/php-cs-fixer v3.75.0    requires ext-json (*)

@@ -4,6 +4,7 @@
"license": "MIT",
"description": "Worldia Coding Standards",
"require": {
"ext-json": "*",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason to add this is because of php-cs-fixer :

composer why ext-json          
                                                                
Package "ext-json *" found in version "8.3.12".
worldia/coding-standards  dev-master requires ext-json (*)
friendsofphp/php-cs-fixer v3.75.0    requires ext-json (*)

@camilledejoye
Copy link

Didn't you want to also add the header comment rule ?

@Wimsims
Copy link
Contributor Author

Wimsims commented Jul 3, 2025

Didn't you want to also add the header comment rule ?

The rules is already present in the factory

'header_comment' => ['header' => $header],

Unfortunately, it won't be personalized based on the folder your are on. I think https://github.com/easy-coding-standard/easy-coding-standard may be able to do it.
To note, the rule is disabled in integrated

@cdaguerre cdaguerre merged commit cf8ac06 into worldia:master Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants