Skip to content

Commit 54de51b

Browse files
authored
Update composer libs versions (#24)
* Update composer libs versions * Add infection exception
1 parent 91df0ce commit 54de51b

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
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.3']
17+
php-versions: ['8.3', '8.4']
1818

1919
steps:
2020
- uses: actions/checkout@v2

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"phpunit/phpunit": "^12.0",
1212
"friendsofphp/php-cs-fixer": "^3.0",
1313
"vimeo/psalm": "^6.0",
14-
"infection/infection": "^0.29 || ^0.30 || ^0.31"
14+
"infection/infection": "^0.31"
1515
},
1616
"autoload": {
1717
"psr-4": {

docker/php/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.3-cli-alpine
1+
FROM php:8.4-cli-alpine
22

33

44
RUN set -xe && apk update && apk add --no-cache \
@@ -25,7 +25,7 @@ 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.8.8 \
28+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.8.8 \
2929
&& mkdir -p /.composer && chmod -Rf 777 /.composer
3030

3131

infection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
"Marvin255\\FileSystemHelper\\FileSystemHelperImpl::rename",
1818
"Marvin255\\FileSystemHelper\\FileSystemHelperImpl::runPhpFunction"
1919
]
20+
},
21+
"ArrayItemRemoval": {
22+
"ignore": [
23+
"Marvin255\\FileSystemHelper\\Helper\\PathHelper::fixDirectorySeparatorAndTrim"
24+
]
25+
},
26+
"LogicalOr": {
27+
"ignore": [
28+
"Marvin255\\FileSystemHelper\\FileSystemHelperImpl::getTmpDir"
29+
]
2030
}
2131
}
2232
}

psalm.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
</projectFiles>
1616

1717
<issueHandlers>
18-
<PropertyNotSetInConstructor errorLevel="suppress"/>
1918
</issueHandlers>
2019

2120
<plugins>

src/Helper/PathHelper.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ public static function unifyPath(string $path): string
4747
{
4848
$path = self::fixDirectorySeparatorAndTrim($path);
4949

50-
if ($path === '') {
51-
return '';
52-
}
53-
5450
$hasLeadingSlash = substr($path, 0, 1) === \DIRECTORY_SEPARATOR;
5551
$parts = array_filter(
5652
explode(\DIRECTORY_SEPARATOR, $path),

0 commit comments

Comments
 (0)