Skip to content

Commit bb010b6

Browse files
committed
⬆️ upgrade to php 8.4
1 parent ec95a23 commit bb010b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+575
-882
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on: [push, pull_request, release, workflow_dispatch]
2+
name: Test
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
container:
7+
image: pluswerk/php-dev:nginx-${{ matrix.php }}
8+
options: -t
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
php: ['8.1', '8.2', '8.3', '8.4']
13+
name: 'PHP ${{ matrix.php }}'
14+
steps:
15+
- run: git config --global --add safe.directory /__w/phpsu/phpsu
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
- name: Cache dependenciess
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/.composer/cache/files
22+
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
23+
- run: composer install --prefer-dist --no-progress --no-suggest
24+
- run: vendor/bin/grumphp run
25+
- run: script -q -e -c "composer test"
26+
- run: script -q -e -c "composer infection"

.github/workflows/shepherd.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/tests/test-results/
44
/tests/.phpunit.result.cache
55
composer.lock
6+
/var/

.travis.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

composer.json

Lines changed: 46 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,49 @@
11
{
2-
"name": "phpsu/shellcommandbuilder",
3-
"description": "Fluid Builder to create shell commands",
4-
"type": "library",
5-
"config": {
6-
"optimize-autoloader": true,
7-
"process-timeout": 0
8-
},
9-
"require-dev": {
10-
"phpunit/phpunit": "^8.5 || ^9.4",
11-
"vimeo/psalm": "^4.1",
12-
"infection/infection": "^0.15.3 || ^0.18.2 || ^0.20.1",
13-
"spatie/phpunit-watcher": "^1.24 || dev-master#071fbbf",
14-
"phpunit/php-invoker": "^2.0 || ^3.1",
15-
"pluswerk/grumphp-config": "^4.0.1"
16-
},
17-
"license": "MIT",
18-
"authors": [
19-
{
20-
"name": "Christian Rodriguez Benthake",
21-
"email": "[email protected]"
22-
}
23-
],
24-
"autoload": {
25-
"psr-4": {
26-
"PHPSu\\ShellCommandBuilder\\": "src"
27-
}
28-
},
29-
"autoload-dev": {
30-
"psr-4": {
31-
"PHPSu\\ShellCommandBuilder\\Tests\\": "tests"
32-
}
33-
},
34-
"scripts": {
35-
"test": "vendor/bin/phpunit -c tests/phpunit.xml --testdox --color=always",
36-
"test:watch": "vendor/bin/phpunit-watcher watch -c tests/phpunit.xml --testdox",
37-
"infection": "vendor/bin/infection --threads=4 --only-covered --min-msi=100 --min-covered-msi=100 --ansi",
38-
"psalm": "vendor/bin/psalm"
39-
},
40-
"minimum-stability": "stable",
41-
"require": {
42-
"php": ">=7.2",
43-
"ext-json": "*"
44-
},
45-
"extra": {
46-
"pluswerk/grumphp-config": {
47-
"auto-setting": false
48-
},
49-
"grumphp": {
50-
"config-default-path": "vendor/pluswerk/grumphp-config/grumphp.yml"
51-
}
2+
"name": "phpsu/shellcommandbuilder",
3+
"description": "Fluid Builder to create shell commands",
4+
"license": "MIT",
5+
"type": "library",
6+
"authors": [
7+
{
8+
"name": "Christian Rodriguez Benthake",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
14+
"ext-json": "*"
15+
},
16+
"require-dev": {
17+
"infection/infection": "^0.29.14",
18+
"phpunit/phpunit": "^10.0 || ^12.0",
19+
"pluswerk/grumphp-config": "^7 || ^10",
20+
"spatie/phpunit-watcher": "^1.24 || dev-master#071fbbf"
21+
},
22+
"minimum-stability": "stable",
23+
"autoload": {
24+
"psr-4": {
25+
"PHPSu\\ShellCommandBuilder\\": "src"
5226
}
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"PHPSu\\ShellCommandBuilder\\Tests\\": "tests"
31+
}
32+
},
33+
"config": {
34+
"allow-plugins": {
35+
"ergebnis/composer-normalize": true,
36+
"infection/extension-installer": true,
37+
"phpro/grumphp": true,
38+
"phpstan/extension-installer": true,
39+
"pluswerk/grumphp-config": true
40+
},
41+
"optimize-autoloader": true,
42+
"process-timeout": 0
43+
},
44+
"scripts": {
45+
"infection": "XDEBUG_MODE=coverage vendor/bin/infection --threads=4 --only-covered --min-msi=99 --min-covered-msi=99 --ansi",
46+
"test": "XDEBUG_MODE=coverage vendor/bin/phpunit -c tests/phpunit.xml --testdox --color=always",
47+
"test:watch": "XDEBUG_MODE=coverage vendor/bin/phpunit-watcher watch -c tests/phpunit.xml --testdox"
48+
}
5349
}

docs/api.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

grumphp.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
imports:
2+
- { resource: vendor/pluswerk/grumphp-config/grumphp.yml }
3+
parameters:
4+
convention.process_timeout: 240
5+
convention.security_checker_blocking: true
6+
convention.jsonlint_ignore_pattern: { }
7+
convention.xmllint_ignore_pattern: { }
8+
convention.yamllint_ignore_pattern: { }
9+
convention.phpcslint_ignore_pattern: { }
10+
convention.phpcslint_exclude: { }
11+
convention.xlifflint_ignore_pattern: { }
12+
convention.rector_ignore_pattern: { }
13+
convention.rector_enabled: true
14+
convention.rector_config: rector.php
15+
convention.rector_clear-cache: false
16+
convention.phpstan_level: null

infection.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
},
1111
"logs": {
1212
"text": "tests/test-results/infection.log",
13-
"summary": "tests/test-results/summary.log",
14-
"perMutator": "tests/test-results/per-mutator.md",
15-
"badge": {
16-
"branch": "master"
17-
}
13+
"html": "tests/test-results/infection.html"
1814
},
1915
"mutators": {
2016
"@default": true,

phpstan-baseline.neon

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Call to function assert\(\) with true will always evaluate to true\.$#'
5+
identifier: function.alreadyNarrowedType
6+
count: 3
7+
path: packages/grumphp-xliff-task/src/XliffLinter.php
8+
9+
-
10+
message: '#^Instanceof between DOMElement and DOMElement will always evaluate to true\.$#'
11+
identifier: instanceof.alwaysTrue
12+
count: 3
13+
path: packages/grumphp-xliff-task/src/XliffLinter.php
14+
15+
-
16+
message: '#^Method Andersundsehr\\RectorP\\PartialCommand\:\:getAllFiles\(\) should return list\<string\> but returns array\<string\>\.$#'
17+
identifier: return.type
18+
count: 1
19+
path: packages/rector-p/src/PartialCommand.php

phpstan.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
- vendor/andersundsehr/phpstan-git-files/extension.php
4+
5+
parameters:
6+
level: 8
7+
reportUnmatchedIgnoredErrors: false

0 commit comments

Comments
 (0)