Skip to content

Commit 39e39ee

Browse files
renovate[bot]pl-github
authored andcommitted
chore(deps): update dependency brainbits/phpcs-standard to v8
1 parent f7ed117 commit 39e39ee

File tree

11 files changed

+40
-34
lines changed

11 files changed

+40
-34
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"ext-mbstring": "*",
1414
"ext-simplexml": "*",
1515
"ext-tidy": "*",
16-
"brainbits/phpcs-standard": "^7.0.1",
16+
"brainbits/phpcs-standard": "^8.0.0",
1717
"brainbits/phpstan-rules": "^4.0",
1818
"dama/doctrine-test-bundle": "^8.2",
1919
"doctrine/dbal": "^3.9",
20-
"ergebnis/phpstan-rules": "^2.6",
20+
"ergebnis/phpstan-rules": "^2.8",
2121
"gemorroj/archive7z": "^5.7",
2222
"mikey179/vfsstream": "^1.6.12",
2323
"monolog/monolog": "^2.0 || ^3.0",

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ parameters:
1010
- '#Constructor in .* has parameter .* with default value#'
1111
- '#SchemaBuilder::foo\(\)#'
1212
ergebnis:
13+
noAssignByReference:
14+
enabled: false
15+
noParameterPassedByReference:
16+
enabled: false
1317
noNullableReturnTypeDeclaration:
1418
enabled: false
1519
noParameterWithNullableTypeDeclaration:

src/HttpClientMock/HttpClientMockTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use function trigger_deprecation;
2626
use function ucfirst;
2727
use function urldecode;
28+
use function vsprintf;
2829

2930
/** @mixin TestCase */
3031
trait HttpClientMockTrait
@@ -476,7 +477,7 @@ protected static function mockRequestMessage(
476477
string $messageTemplate,
477478
mixed ...$values,
478479
): string {
479-
$message = sprintf($messageTemplate, ...$values);
480+
$message = vsprintf($messageTemplate, $values);
480481

481482
return $userMessage !== ''
482483
? ucfirst($userMessage) . '. ' . $message

src/HttpClientMock/Matcher/QueryParamMatcher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Brainbits\FunctionalTestHelpers\HttpClientMock\RealRequest;
88

99
use function sprintf;
10+
use function vsprintf;
1011

1112
final readonly class QueryParamMatcher implements Matcher
1213
{
@@ -15,7 +16,7 @@
1516
/** @param array<string> $placeholders */
1617
public function __construct(private string $key, string $value, array $placeholders)
1718
{
18-
$this->value = sprintf($value, ...$placeholders);
19+
$this->value = vsprintf($value, $placeholders);
1920
}
2021

2122
public function __invoke(RealRequest $realRequest): Hit|Mismatch|Missing

src/ZipContents/FileInfo.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,30 @@
1818

1919
final class FileInfo
2020
{
21-
private const COMPRESSION_STORED = 0;
22-
private const COMPRESSION_SHRUNK = 1;
23-
private const COMPRESSION_REDUCED_FACTOR_1 = 2;
24-
private const COMPRESSION_REDUCED_FACTOR_2 = 3;
25-
private const COMPRESSION_REDUCED_FACTOR_3 = 4;
26-
private const COMPRESSION_REDUCED_FACTOR_4 = 5;
27-
private const COMPRESSION_IMPLODED = 6;
28-
private const COMPRESSION_DEFLATED = 8;
29-
private const COMPRESSION_DEFLATE64 = 9;
30-
private const COMPRESSION_PKZIP = 10;
31-
private const COMPRESSION_BZIP2 = 12;
32-
private const COMPRESSION_LZMA = 14;
33-
private const COMPRESSION_CMPSC = 16;
34-
private const COMPRESSION_TERSE = 18;
35-
private const COMPRESSION_LZ77 = 19;
36-
private const COMPRESSION_ZSTD = 93;
37-
private const COMPRESSION_MP3 = 94;
38-
private const COMPRESSION_XZ = 95;
39-
private const COMPRESSION_JPEG = 96;
40-
private const COMPRESSION_WAVPACK = 97;
41-
private const COMPRESSION_PPMD = 98;
42-
private const COMPRESSION_AEX = 99;
43-
44-
private const COMPRESSION_MAP = [
21+
private const int COMPRESSION_STORED = 0;
22+
private const int COMPRESSION_SHRUNK = 1;
23+
private const int COMPRESSION_REDUCED_FACTOR_1 = 2;
24+
private const int COMPRESSION_REDUCED_FACTOR_2 = 3;
25+
private const int COMPRESSION_REDUCED_FACTOR_3 = 4;
26+
private const int COMPRESSION_REDUCED_FACTOR_4 = 5;
27+
private const int COMPRESSION_IMPLODED = 6;
28+
private const int COMPRESSION_DEFLATED = 8;
29+
private const int COMPRESSION_DEFLATE64 = 9;
30+
private const int COMPRESSION_PKZIP = 10;
31+
private const int COMPRESSION_BZIP2 = 12;
32+
private const int COMPRESSION_LZMA = 14;
33+
private const int COMPRESSION_CMPSC = 16;
34+
private const int COMPRESSION_TERSE = 18;
35+
private const int COMPRESSION_LZ77 = 19;
36+
private const int COMPRESSION_ZSTD = 93;
37+
private const int COMPRESSION_MP3 = 94;
38+
private const int COMPRESSION_XZ = 95;
39+
private const int COMPRESSION_JPEG = 96;
40+
private const int COMPRESSION_WAVPACK = 97;
41+
private const int COMPRESSION_PPMD = 98;
42+
private const int COMPRESSION_AEX = 99;
43+
44+
private const array COMPRESSION_MAP = [
4545
self::COMPRESSION_STORED => 'stored (no compression)',
4646
self::COMPRESSION_SHRUNK => 'Shrunk',
4747
self::COMPRESSION_REDUCED_FACTOR_1 => 'Reduced with compression factor 1',

tests/HttpClientMock/MockRequestBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function testEmptyResponsesThrowsException(): void
316316
$this->expectException(NoResponseMock::class);
317317
$this->expectExceptionMessage('No response configured for:');
318318

319-
$mockRequestBuilder = (new MockRequestBuilder());
319+
$mockRequestBuilder = new MockRequestBuilder();
320320

321321
$mockRequestBuilder->nextResponse();
322322
}

tests/SevenZipContents/SevenZipContentsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#[CoversClass(SevenZipContents::class)]
2424
final class SevenZipContentsTest extends TestCase
2525
{
26-
private const FILE_7Z = __DIR__ . '/../files/test.7z';
26+
private const string FILE_7Z = __DIR__ . '/../files/test.7z';
2727

2828
protected function setUp(): void
2929
{

tests/SevenZipContents/SevenZipContentsTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class SevenZipContentsTraitTest extends TestCase
1414
{
1515
use SevenZipContentsTrait;
1616

17-
private const FILE = __DIR__ . '/../files/test.7z';
17+
private const string FILE = __DIR__ . '/../files/test.7z';
1818

1919
protected function setUp(): void
2020
{

tests/ZipContents/ZipContentsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#[CoversClass(ZipContents::class)]
1717
final class ZipContentsTest extends TestCase
1818
{
19-
private const FILE = __DIR__ . '/../files/test.zip';
19+
private const string FILE = __DIR__ . '/../files/test.zip';
2020

2121
public function testItNeedsFile(): void
2222
{

tests/ZipContents/ZipContentsTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class ZipContentsTraitTest extends TestCase
1515
{
1616
use ZipContentsTrait;
1717

18-
private const FILE = __DIR__ . '/../files/test.zip';
18+
private const string FILE = __DIR__ . '/../files/test.zip';
1919

2020
public function testAssertZipHasSizeForZipFileFails(): void
2121
{

0 commit comments

Comments
 (0)