Skip to content

Commit e76902f

Browse files
authored
Update README.md (#20)
1 parent 7b83751 commit e76902f

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
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

.php-cs-fixer.dist.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

33
use 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
],
@@ -45,4 +46,7 @@
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);

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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"

docker/php/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-cli-alpine
1+
FROM php:8.2-cli-alpine
22

33

44
RUN 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

1919
RUN 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

tests/BaseCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)