Skip to content

Commit

Permalink
Update README.md (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin255 authored Oct 1, 2024
1 parent 7b83751 commit e76902f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php-versions: ['8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3']

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 6 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php

use PhpCsFixer\Config;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

$finder = PhpCsFixer\Finder::create()->in(__DIR__);

$rules = [
'@Symfony' => true,
'new_with_braces' => true,
'new_with_parentheses' => true,
'concat_space' => [
'spacing' => 'one',
],
Expand Down Expand Up @@ -45,4 +46,7 @@
'strict_comparison' => true,
];

return (new Config())->setRules($rules)->setFinder($finder);
return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRules($rules)
->setFinder($finder);
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Latest Stable Version](https://poser.pugx.org/marvin255/file-system-helper/v/stable.png)](https://packagist.org/packages/marvin255/file-system-helper)
[![Total Downloads](https://poser.pugx.org/marvin255/file-system-helper/downloads.png)](https://packagist.org/packages/marvin255/file-system-helper)
[![License](https://poser.pugx.org/marvin255/file-system-helper/license.svg)](https://packagist.org/packages/marvin255/file-system-helper)
[![Latest Stable Version](https://poser.pugx.org/marvin255/file-system-helper/v)](https://packagist.org/packages/marvin255/file-system-helper)
[![Total Downloads](https://poser.pugx.org/marvin255/file-system-helper/downloads)](https://packagist.org/packages/marvin255/file-system-helper)
[![License](https://poser.pugx.org/marvin255/file-system-helper/license)](https://packagist.org/packages/marvin255/file-system-helper)
[![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)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"test": [
"vendor/bin/phpunit --configuration phpunit.xml.dist"
"vendor/bin/phpunit --configuration phpunit.xml.dist --display-deprecations --display-phpunit-deprecations"
],
"coverage": [
"vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-html=tests/coverage"
Expand Down
10 changes: 5 additions & 5 deletions docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-cli-alpine
FROM php:8.2-cli-alpine


RUN set -xe && apk update && apk add --no-cache \
Expand All @@ -12,8 +12,8 @@ RUN set -xe && apk update && apk add --no-cache \
git \
autoconf \
g++ \
make \
linux-headers
linux-headers \
make


RUN docker-php-ext-install zip opcache \
Expand All @@ -25,8 +25,8 @@ RUN docker-php-ext-install zip opcache \
&& echo 'xdebug.mode=coverage' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini


RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.7.6 \
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.7.8 \
&& mkdir -p /.composer && chmod -Rf 777 /.composer


WORKDIR /var/app
WORKDIR /var/app
4 changes: 2 additions & 2 deletions tests/BaseCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ private static function convertPartsToPath(...$parts): string
protected function assertDirectoryHasPermissions(int $awaitedPermissions, \SplFileInfo|string $directory): void
{
$directory = self::convertPathToString($directory);
$awaitedPermissions = sprintf('%o', $awaitedPermissions);
$realPermissions = substr(sprintf('%o', fileperms($directory)), -3);
$awaitedPermissions = \sprintf('%o', $awaitedPermissions);
$realPermissions = substr(\sprintf('%o', fileperms($directory)), -3);
$this->assertSame($awaitedPermissions, $realPermissions, 'Directory has correct permissions');
}
}

0 comments on commit e76902f

Please sign in to comment.