File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ Makefile export-ignore
1111phpstan.neon export-ignore
1212phpstan-baseline.neon export-ignore
1313phpunit.xml export-ignore
14+ collision-detector.json export-ignore
Original file line number Diff line number Diff line change @@ -262,3 +262,29 @@ jobs:
262262 with :
263263 path : ./tmp
264264 key : " result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
265+
266+ name-collision :
267+ name : " Name Collision Detector"
268+
269+ runs-on : " ubuntu-latest"
270+ timeout-minutes : 60
271+
272+ steps :
273+ - name : Harden the runner (Audit all outbound calls)
274+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
275+ with :
276+ egress-policy : audit
277+
278+ - name : " Checkout"
279+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
280+
281+ - name : " Install PHP"
282+ uses : " shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1" # v2
283+ with :
284+ coverage : " none"
285+ php-version : " 8.5"
286+
287+ - uses : " ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
288+
289+ - name : " Name Collision Detector"
290+ 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 -c phpstan.neon
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 1313 "require-dev" : {
1414 "php-parallel-lint/php-parallel-lint" : " ^1.2" ,
1515 "phpstan/phpstan-phpunit" : " ^2.0" ,
16- "phpunit/phpunit" : " ^9.6"
16+ "phpunit/phpunit" : " ^9.6" ,
17+ "shipmonk/name-collision-detector" : " ^2.1"
1718 },
1819 "config" : {
1920 "platform" : {
You can’t perform that action at this time.
0 commit comments