File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ Makefile export-ignore
99phpstan.neon export-ignore
1010CLAUDE.md export-ignore
1111phpunit.xml export-ignore
12+ collision-detector.json export-ignore
Original file line number Diff line number Diff line change @@ -185,3 +185,29 @@ jobs:
185185
186186 - name : " PHPStan"
187187 run : " make phpstan"
188+
189+ name-collision :
190+ name : " Name Collision Detector"
191+
192+ runs-on : " ubuntu-latest"
193+ timeout-minutes : 60
194+
195+ steps :
196+ - name : Harden the runner (Audit all outbound calls)
197+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
198+ with :
199+ egress-policy : audit
200+
201+ - name : " Checkout"
202+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
203+
204+ - name : " Install PHP"
205+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1" # v2
206+ with :
207+ coverage : " none"
208+ php-version : " 8.5"
209+
210+ - uses : " ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
211+
212+ - name : " Name Collision Detector"
213+ run : " make name-collision"
Original file line number Diff line number Diff line change @@ -27,3 +27,6 @@ cs-fix:
2727.PHONY : phpstan
2828phpstan :
2929 php vendor/bin/phpstan analyse -l 8 -c phpstan.neon src tests
30+
31+ name-collision :
32+ php vendor/bin/detect-collisions --configuration collision-detector.json
Original file line number Diff line number Diff line change 1+ {
2+ "scanPaths" : [" src" , " tests" ]
3+ }
Original file line number Diff line number Diff line change 1717 "php-parallel-lint/php-parallel-lint" : " ^1.2" ,
1818 "phpstan/phpstan-phpunit" : " ^2.0" ,
1919 "phpstan/phpstan-strict-rules" : " ^2.0" ,
20- "phpunit/phpunit" : " ^9.6"
20+ "phpunit/phpunit" : " ^9.6" ,
21+ "shipmonk/name-collision-detector" : " ^2.1"
2122 },
2223 "config" : {
2324 "platform" : {
You can’t perform that action at this time.
0 commit comments