Skip to content

Commit 79a5c5f

Browse files
Bump phpstan/phpstan-phpunit from 2.0.7 to 2.0.8 (#14411)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pascal Birchler <pascalb@google.com>
1 parent 0e9ba27 commit 79a5c5f

File tree

5 files changed

+17
-18
lines changed

5 files changed

+17
-18
lines changed

composer.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

includes/Story_Revisions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function register(): void {
9393
*
9494
* @since 1.25.0
9595
*
96-
* @param int|bool $num Number of revisions to store.
96+
* @param int|bool|string $num Number of revisions to store.
9797
* @return int Number of revisions to store.
9898
*/
9999
public function revisions_to_keep( $num ): int {

tests/phpunit/integration/tests/Shopping/Shopify_Query.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ public function test_get_search_empty_search_response(): void {
336336

337337
$this->assertNotWPError( $actual );
338338
$this->assertEmpty( $actual['products'] );
339-
$this->assertCount( 0, $actual['products'] );
340339
$this->assertSame( 1, $this->request_count );
341340
$this->assertStringContainsString( 'query: "title:*some search term*"', $this->request_body );
342341
}
@@ -372,8 +371,8 @@ public static function data_test_get_search_sort_by_query(): array {
372371
}
373372

374373
/**
375-
* @param string[] $args
376-
* @param string[] $expected
374+
* @param array{0: string, 1: int, 2: int, 3: string, 4: string} $args
375+
* @param string[] $expected
377376
*
378377
* @covers ::fetch_remote_products
379378
* @covers ::get_search

tests/phpunit/integration/tests/Story_Revisions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public function test_register(): void {
5959
/**
6060
* Testing the revisions_to_keep() method.
6161
*
62-
* @param int|bool $num Number of revisions
63-
* @param int $expected Expected string of CSS rules.
62+
* @param int|bool|string $num Number of revisions
63+
* @param int $expected Expected string of CSS rules.
6464
*
6565
* @dataProvider data_test_revisions_to_keep
6666
* @covers ::revisions_to_keep

tests/phpunit/unit/tests/AMP/Story_Sanitizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function get_publisher_data(): array {
276276
/**
277277
* @param string $source Source.
278278
* @param string $expected Expected.
279-
* @param array<string, array<string|array<string, mixed>>> $args Args
279+
* @param array<string, array<string, mixed>|string|false> $args Args
280280
*
281281
* @dataProvider get_publisher_data
282282
* @covers ::sanitize

0 commit comments

Comments
 (0)