Skip to content

Commit 9dd06dd

Browse files
jablanclaude
andcommitted
fix(php): drop unused/vulnerable dev tooling from client template
squizlabs/php_codesniffer ~2.6 only resolves to versions flagged by Composer's security-advisory audit, breaking `composer install` in CI. Neither it nor friendsofphp/php-cs-fixer is invoked anywhere in the PHP client's CI pipeline, and the .php_cs config that would have driven the fixer was already orphaned (wrong filename to be picked up by the generator, and using a Config::create() API removed in php-cs-fixer 3.x). Remove both as dead weight. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent c44eb1c commit 9dd06dd

3 files changed

Lines changed: 1 addition & 27 deletions

File tree

‎openapi-generator/templates/php/.gitattributes‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
.gitattributes export-ignore
55
.gitignore export-ignore
66
.openapi-generator-ignore export-ignore
7-
.php_cs export-ignore
87
git_push.sh export-ignore
98
phpunit.xml.dist export-ignore

‎openapi-generator/templates/php/.php_cs‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎openapi-generator/templates/php/composer.mustache‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
"guzzlehttp/guzzle": "^7.9"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^12.1",
34-
"squizlabs/php_codesniffer": "~2.6",
35-
"friendsofphp/php-cs-fixer": "~2.12"
33+
"phpunit/phpunit": "^12.1"
3634
},
3735
"autoload": {
3836
"psr-4": { "{{escapedInvokerPackage}}\\" : "{{srcBasePath}}/" }

0 commit comments

Comments
 (0)