Skip to content

Commit 0a33f82

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feat/phpunit12
2 parents b865030 + 3d44577 commit 0a33f82

36 files changed

+978
-172
lines changed

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: "actions/checkout@v4"
1919

2020
- name: "Check Markdown formatting"
21-
uses: "DavidAnson/markdownlint-cli2-action@v18.0.0"
21+
uses: "DavidAnson/markdownlint-cli2-action@v20.0.0"
2222
with:
2323
globs: "*.md|docs/**/*.md"
2424

@@ -38,7 +38,7 @@ jobs:
3838
restore-keys: cache-lychee-
3939

4040
- name: "Run Lychee"
41-
uses: "lycheeverse/lychee-action@v2.1.0"
41+
uses: "lycheeverse/lychee-action@v2.4.1"
4242
with:
4343
# To keep in sync with Makefile#lychee
4444
args: "--verbose --no-progress '*.md' 'docs/**/*.md' --cache --max-cache-age 1d ."

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/composer.lock
88
/dist/
99
/phpunit.xml
10+
/tests/Integration/App/var/
1011
/tests/Integration/output
11-
/tests/Integration/var/
1212
/vendor-bin/*/vendor/
1313
/vendor/

.php-cs-fixer.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313
use PhpCsFixer\Finder;
1414

1515
$finder = Finder::create()
16+
->files()
1617
->in(__DIR__)
17-
->append([
18-
'.github/fix-symfony-versions',
19-
'set-composer-conflicts.php',
20-
])
2118
->exclude([
2219
'dist',
23-
'tests/Integration/var',
20+
'tests/Integration/App/var',
2421
]);
2522

2623
$config = new FidryConfig(

bin/console

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
#!/usr/bin/env php
22
<?php
33

4+
/*
5+
* This file is part of the Webmozarts Console Parallelization package.
6+
*
7+
* (c) Webmozarts GmbH <office@webmozarts.com>
8+
*
9+
* For the full copyright and license information, please view the LICENSE
10+
* file that was distributed with this source code.
11+
*/
12+
413
declare(strict_types=1);
514

615
require __DIR__.'/../vendor/autoload.php';
716

817
use Symfony\Bundle\FrameworkBundle\Console\Application;
9-
use Symfony\Component\DependencyInjection\Container;
10-
use Webmozarts\Console\Parallelization\Fixtures\Command\AbsoluteScriptPathCommand;
11-
use Webmozarts\Console\Parallelization\Fixtures\Command\ImportMoviesCommand;
12-
use Webmozarts\Console\Parallelization\Fixtures\Command\ImportUnknownMoviesCountCommand;
13-
use Webmozarts\Console\Parallelization\Fixtures\Command\LegacyCommand;
14-
use Webmozarts\Console\Parallelization\Fixtures\Command\NoSubProcessCommand;
15-
use Webmozarts\Console\Parallelization\Integration\Kernel;
18+
use Webmozarts\Console\Parallelization\Integration\App\Kernel;
1619
use function Safe\ini_set;
1720

1821
error_reporting(E_ALL);

bin/fix-symfony-versions

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use function file_get_contents;
1818
use function file_put_contents;
1919
use function json_decode;
2020
use function json_encode;
21-
use function shell_exec;
2221
use const JSON_PRETTY_PRINT;
2322
use const JSON_UNESCAPED_SLASHES;
2423

bin/no-framework

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env php
22
<?php
33

4+
/*
5+
* This file is part of the Webmozarts Console Parallelization package.
6+
*
7+
* (c) Webmozarts GmbH <office@webmozarts.com>
8+
*
9+
* For the full copyright and license information, please view the LICENSE
10+
* file that was distributed with this source code.
11+
*/
12+
413
declare(strict_types=1);
514

615
require __DIR__.'/../vendor/autoload.php';

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
"ergebnis/composer-normalize": "^2.45",
3434
"fidry/makefile": "^1.1.1",
3535
"infection/infection": "^0.29.14",
36-
"jangregor/phpstan-prophecy": "^2.0",
36+
"jangregor/phpstan-prophecy": "^2.1.1",
3737
"phpspec/prophecy-phpunit": "^2.3",
38-
"phpstan/extension-installer": "^1.4.3",
39-
"phpstan/phpstan": "^1.12.23",
40-
"phpstan/phpstan-phpunit": "^1.4.2",
41-
"phpstan/phpstan-symfony": "^1.4.14",
42-
"phpstan/phpstan-webmozart-assert": "^1.2.11",
38+
"phpstan/extension-installer": "^1.1",
39+
"phpstan/phpstan": "^2.1.10",
40+
"phpstan/phpstan-phpunit": "^2.0.4",
41+
"phpstan/phpstan-symfony": "^2.0.3",
42+
"phpstan/phpstan-webmozart-assert": "^2.0",
4343
"phpunit/phpunit": "^12.0",
4444
"symfony/framework-bundle": "^6.4.19 || ^7.2.4",
4545
"webmozarts/strict-phpunit": "^7.13.1"

phpstan-src.neon.dist

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ parameters:
88
- path: src/Logger/DecoratorLogger.php
99
message: '#Parameter \#1#'
1010

11-
- path: src/ChunkedItemsIterator.php
12-
message: '#ChunkedItemsIterator::\$itemsChunks#'
13-
1411
- path: src/Input/ChildCommandFactory.php
1512
message: '#Parameter \#1 \$callback of function array_map expects#'
13+
14+
- path: src/Configuration.php
15+
identifier: staticMethod.alreadyNarrowedType
16+
17+
- path: src/Input/RawInput.php
18+
identifier: return.type
19+
20+
- path: src/Parallelization.php
21+
identifier: trait.unused

phpstan-tests.neon.dist

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ parameters:
44
- bin/set-composer-conflicts.php
55
- tests
66
excludePaths:
7-
- tests/Integration/var
7+
- tests/Integration/App/var
88
- tests/Input/FakeInput.php
9-
- tests/Input/FakeInput74.php
10-
- tests/Input/FakeInput81.php
119
- tests/Input/FakeSymfony6Input.php
1210
- tests/Process/DummyProcess.php
13-
- tests/Process/DummyProcess74.php
14-
- tests/Process/DummyProcess81.php
1511
ignoreErrors:
1612
- path: tests/Integration/TestLogger.php
1713
message: '#TestLogger::\$outputHandler#'
@@ -24,6 +20,8 @@ parameters:
2420
message: '#ParallelizationIntegrationTest::\$noSubProcessCommand#'
2521
- path: tests/Integration/ParallelizationIntegrationTest.php
2622
message: '#ParallelizationIntegrationTest::\$legacyCommand#'
23+
- path: tests/Integration/DebugChildProcessInputsTest.php
24+
message: '#DebugChildProcessInputsTest::\$command#'
2725

2826
- path: tests/ChunkedItemsIteratorTest.php
2927
message: '#Parameter \#2 \$fetchItems of static method .+ChunkedItemsIterator::fromItemOrCallable\(\) expects callable\(\)#'
@@ -40,4 +38,9 @@ parameters:
4038
message: '#Static method .* is unused#'
4139

4240
- path: tests/Input/RawInputTest.php
43-
message: '#Webmozarts\\Console\\Parallelization\\Input\\FakeInput#'
41+
message: '#Webmozarts\\Console\\Parallelization\\Input\\FakeInput#'
42+
43+
- path: tests/LazyRewindableIteratorTest.php
44+
identifier: staticMethod.alreadyNarrowedType
45+
- path: tests/LazyRewindableIteratorTest.php
46+
identifier: staticMethod.impossibleType

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4-
cacheResultFile="dist/.phpunit.result.cache"
4+
cacheDirectory="dist/phpunit-cache"
55
bootstrap="vendor/autoload.php"
66
beStrictAboutChangesToGlobalState="true"
77
beStrictAboutOutputDuringTests="true"

0 commit comments

Comments
 (0)