File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : psalm
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *.x'
7+ pull_request :
8+ schedule :
9+ - cron : ' 0 0 * * *'
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ psalm :
17+ name : Psalm Static Analysis on PHP ${{ matrix.php-version }} (Ubuntu 24.04)
18+ runs-on : ubuntu-24.04
19+ strategy :
20+ matrix :
21+ php-version :
22+ - ' 8.4'
23+ steps :
24+ - name : Setup PHP ${{ matrix.php-version }}
25+ uses : shivammathur/setup-php@v2
26+ with :
27+ php-version : ${{ matrix.php-version }}
28+ extensions : mbstring, xml
29+
30+ - name : Checkout Repository
31+ uses : actions/checkout@v4
32+
33+ - name : Install Dependencies
34+ run : composer install --prefer-dist --no-interaction --no-progress --dev
35+
36+ - name : Run Psalm
37+ run : vendor/bin/psalm --show-info=true
Original file line number Diff line number Diff line change 2020 "nesbot/carbon" : " ^2.63 || ^3.0"
2121 },
2222 "require-dev" : {
23- "phpunit/phpunit" : " ^12.0"
23+ "phpunit/phpunit" : " ^12.0" ,
24+ "vimeo/psalm" : " ^6.0"
2425 },
2526 "autoload" : {
2627 "psr-4" : {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <psalm
3+ errorLevel =" 1"
4+ resolveFromConfigFile =" true"
5+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6+ xmlns =" https://getpsalm.org/schema/config"
7+ xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+ findUnusedBaselineEntry =" true"
9+ findUnusedCode =" false"
10+ >
11+ <projectFiles >
12+ <directory name =" src" />
13+ <ignoreFiles >
14+ <directory name =" vendor" />
15+ </ignoreFiles >
16+ </projectFiles >
17+
18+ <stubs >
19+ <file name =" stubs/Scraper.stubphp" />
20+ </stubs >
21+ </psalm >
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace BVP\Scraper;
4+
5+ final class Scraper {}
You can’t perform that action at this time.
0 commit comments