File tree Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 47
47
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
48
48
restore-keys : ${{ runner.os }}-composer-
49
49
50
- - name : Create PHPStan cache directory
51
- run : mkdir -p build/phpstan
52
-
53
- - name : Cache PHPStan results
54
- uses : actions/cache@v2
55
- with :
56
- path : build/phpstan
57
- key : ${{ runner.os }}-phpstan-${{ github.sha }}
58
- restore-keys : ${{ runner.os }}-phpstan-
59
-
60
50
- name : Install dependencies
61
51
run : |
62
52
composer -q config -g github-oauth.github.com "${{ secrets.GITHUB_TOKEN }}"
67
57
fi
68
58
69
59
- name : Detect unused packages
70
- run : composer-unused -vvv --ansi --no-interaction --no-progress --excludePackage=php
60
+ run : composer-unused -vvv --output-format=github -- ansi --no-interaction --no-progress
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use ComposerUnused \ComposerUnused \Configuration \Configuration ;
6
+ use ComposerUnused \ComposerUnused \Configuration \NamedFilter ;
7
+ use ComposerUnused \ComposerUnused \Configuration \PatternFilter ;
8
+ use Webmozart \Glob \Glob ;
9
+
10
+ return static function (Configuration $ config ): Configuration {
11
+ return $ config
12
+ // ->addNamedFilter(NamedFilter::fromString('symfony/config'))
13
+ // ->addPatternFilter(PatternFilter::fromString('/symfony-.*/'))
14
+ ->setAdditionalFilesFor ('codeigniter4/framework ' , [
15
+ ...Glob::glob (__DIR__ . '/vendor/codeigniter4/framework/system/Helpers/*.php ' ),
16
+ ]);
17
+ };
You can’t perform that action at this time.
0 commit comments