Skip to content

Commit bfa3930

Browse files
Bump phpstan/phpstan-deprecation-rules from 2.0.4 to 2.0.5 (#14598)
Co-authored-by: Pascal Birchler <pascalb@google.com> Signed-off-by: dependabot[bot] <support@github.com>
1 parent 97f30ab commit bfa3930

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

composer.lock

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

includes/Post_Type_Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public function on_plugin_uninstall(): void {
368368
'suppress_filters' => false,
369369
'post_status' => 'any',
370370
'post_type' => $this->get_slug(),
371-
'posts_per_page' => -1,
371+
'posts_per_page' => -1, // phpcs:ignore WordPressVIPMinimum.Performance.NoPaging.posts_per_page_posts_per_page -- We need to delete all posts.
372372
]
373373
);
374374

includes/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ protected function get_registered_options(): array {
577577
$default_schema = [
578578
'type' => empty( $args['type'] ) ? null : $args['type'],
579579
'description' => empty( $args['description'] ) ? '' : $args['description'],
580-
'default' => $args['default'] ?? null,
580+
'default' => $args['default'],
581581
];
582582

583583
$schema = array_merge( $default_schema, $rest_args['schema'] );

includes/templates/frontend/single-web-story.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
'web_stories_revision_for_' . $current_post->ID
4646
)
4747
) {
48+
// @phpstan-ignore cast.string
4849
$rev_id = absint( sanitize_text_field( (string) wp_unslash( $_GET['rev_id'] ) ) );
4950
$revision_post = get_post( $rev_id );
5051

0 commit comments

Comments
 (0)