Skip to content

Commit 3409d38

Browse files
committed
Add ext-sodium and use local phpcs
1 parent 9ce3f03 commit 3409d38

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/php.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
uses: shivammathur/setup-php@v2
5555
with:
5656
php-version: ${{ matrix.php-versions }}
57-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
57+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl,\
58+
pcre, posix, session, sodium, spl, xml
5859
tools: composer
5960
ini-values: error_reporting=E_ALL
6061
coverage: pcov
@@ -116,7 +117,8 @@ jobs:
116117
uses: shivammathur/setup-php@v2
117118
with:
118119
php-version: ${{ matrix.php-versions }}
119-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml, zip
120+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl,\
121+
pcre, posix, session, sodium, spl, xml, zip
120122
tools: composer
121123
ini-values: error_reporting=E_ALL
122124
coverage: none
@@ -163,9 +165,10 @@ jobs:
163165
with:
164166
# Should be the higest supported version, so we can use the newest tools
165167
php-version: '8.5'
166-
tools: composer, composer-require-checker, composer-unused, phpcs, psalm
168+
tools: composer, composer-require-checker, composer-unused
167169
# optional performance gain for psalm: opcache
168-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, opcache, openssl, pcre, posix, spl, xml
170+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, opcache, openssl,\
171+
pcre, posix, session, sodium, spl, xml
169172

170173
- name: Setup problem matchers for PHP
171174
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -195,7 +198,7 @@ jobs:
195198
run: composer-unused
196199

197200
- name: PHP Code Sniffer
198-
run: phpcs
201+
run: vendor/bin/phpcs
199202

200203
- name: PHPStan
201204
run: |
@@ -217,7 +220,8 @@ jobs:
217220
with:
218221
# Should be the lowest supported version
219222
php-version: '8.3'
220-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml, zip
223+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix,\
224+
session, sodium, spl, xml, zip
221225
tools: composer
222226
coverage: none
223227

0 commit comments

Comments
 (0)