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 4747 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
4848 restore-keys : ${{ runner.os }}-composer-
4949
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-
6050 - name : Install dependencies
6151 run : |
6252 composer -q config -g github-oauth.github.com "${{ secrets.GITHUB_TOKEN }}"
6757 fi
6858
6959 - 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