File tree Expand file tree Collapse file tree 6 files changed +18
-14
lines changed
Expand file tree Collapse file tree 6 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 1414 strategy :
1515 fail-fast : true
1616 matrix :
17- php-versions : ['8.1', '8.2']
17+ php-versions : ['8.1', '8.2', '8.3' ]
1818
1919 steps :
2020 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change 11<?php
22
33use PhpCsFixer \Config ;
4+ use PhpCsFixer \Runner \Parallel \ParallelConfigFactory ;
45
56$ finder = PhpCsFixer \Finder::create ()->in (__DIR__ );
67
78$ rules = [
89 '@Symfony ' => true ,
9- 'new_with_braces ' => true ,
10+ 'new_with_parentheses ' => true ,
1011 'concat_space ' => [
1112 'spacing ' => 'one ' ,
1213 ],
4546 'strict_comparison ' => true ,
4647];
4748
48- return (new Config ())->setRules ($ rules )->setFinder ($ finder );
49+ return (new Config ())
50+ ->setParallelConfig (ParallelConfigFactory::detect ())
51+ ->setRules ($ rules )
52+ ->setFinder ($ finder );
Original file line number Diff line number Diff line change 1- [ ![ Latest Stable Version] ( https://poser.pugx.org/marvin255/file-system-helper/v/stable.png )] ( https://packagist.org/packages/marvin255/file-system-helper )
2- [ ![ Total Downloads] ( https://poser.pugx.org/marvin255/file-system-helper/downloads.png )] ( https://packagist.org/packages/marvin255/file-system-helper )
3- [ ![ License] ( https://poser.pugx.org/marvin255/file-system-helper/license.svg )] ( https://packagist.org/packages/marvin255/file-system-helper )
1+ [ ![ Latest Stable Version] ( https://poser.pugx.org/marvin255/file-system-helper/v )] ( https://packagist.org/packages/marvin255/file-system-helper )
2+ [ ![ Total Downloads] ( https://poser.pugx.org/marvin255/file-system-helper/downloads )] ( https://packagist.org/packages/marvin255/file-system-helper )
3+ [ ![ License] ( https://poser.pugx.org/marvin255/file-system-helper/license )] ( https://packagist.org/packages/marvin255/file-system-helper )
44[ ![ Build Status] ( https://github.com/marvin255/file-system-helper/workflows/file_system_helper/badge.svg )] ( https://github.com/marvin255/file-system-helper/actions?query=workflow%3A%22file_system_helper%22 )
Original file line number Diff line number Diff line change 2525 },
2626 "scripts" : {
2727 "test" : [
28- " vendor/bin/phpunit --configuration phpunit.xml.dist"
28+ " vendor/bin/phpunit --configuration phpunit.xml.dist --display-deprecations --display-phpunit-deprecations "
2929 ],
3030 "coverage" : [
3131 " vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-html=tests/coverage"
Original file line number Diff line number Diff line change 1- FROM php:8.1 -cli-alpine
1+ FROM php:8.2 -cli-alpine
22
33
44RUN set -xe && apk update && apk add --no-cache \
@@ -12,8 +12,8 @@ RUN set -xe && apk update && apk add --no-cache \
1212 git \
1313 autoconf \
1414 g++ \
15- make \
16- linux-headers
15+ linux-headers \
16+ make
1717
1818
1919RUN docker-php-ext-install zip opcache \
@@ -25,8 +25,8 @@ RUN docker-php-ext-install zip opcache \
2525 && echo 'xdebug.mode=coverage' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
2626
2727
28- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.7.6 \
28+ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.7.8 \
2929 && mkdir -p /.composer && chmod -Rf 777 /.composer
3030
3131
32- WORKDIR /var/app
32+ WORKDIR /var/app
Original file line number Diff line number Diff line change @@ -160,8 +160,8 @@ private static function convertPartsToPath(...$parts): string
160160 protected function assertDirectoryHasPermissions (int $ awaitedPermissions , \SplFileInfo |string $ directory ): void
161161 {
162162 $ directory = self ::convertPathToString ($ directory );
163- $ awaitedPermissions = sprintf ('%o ' , $ awaitedPermissions );
164- $ realPermissions = substr (sprintf ('%o ' , fileperms ($ directory )), -3 );
163+ $ awaitedPermissions = \ sprintf ('%o ' , $ awaitedPermissions );
164+ $ realPermissions = substr (\ sprintf ('%o ' , fileperms ($ directory )), -3 );
165165 $ this ->assertSame ($ awaitedPermissions , $ realPermissions , 'Directory has correct permissions ' );
166166 }
167167}
You can’t perform that action at this time.
0 commit comments