File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ CLAUDE.md export-ignore
1212Makefile export-ignore
1313phpstan.neon export-ignore
1414phpunit.xml export-ignore
15+ 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 @@ -28,3 +28,6 @@ cs-fix:
2828.PHONY : phpstan
2929phpstan :
3030 php vendor/bin/phpstan analyse -l 8 -c phpstan.neon src tests
31+
32+ name-collision :
33+ 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 2626 "phpstan/phpstan-deprecation-rules" : " ^2.0" ,
2727 "phpstan/phpstan-phpunit" : " ^2.0.8" ,
2828 "phpstan/phpstan-strict-rules" : " ^2.0" ,
29- "phpunit/phpunit" : " ^9.6"
29+ "phpunit/phpunit" : " ^9.6" ,
30+ "shipmonk/name-collision-detector" : " ^2.1"
3031 },
3132 "config" : {
3233 "sort-packages" : true
You can’t perform that action at this time.
0 commit comments