diff --git a/composer.lock b/composer.lock index 7bccdd610045..521e2e1a1d86 100644 --- a/composer.lock +++ b/composer.lock @@ -3158,11 +3158,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.2.5", + "version": "2.2.9", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/909c1e5fef7989ac0d0c1c5c42e32a5c4f6198a0", - "reference": "909c1e5fef7989ac0d0c1c5c42e32a5c4f6198a0", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/13d6b4f347bad222da436580c8304fa6f83e6bd0", + "reference": "13d6b4f347bad222da436580c8304fa6f83e6bd0", "shasum": "" }, "require": { @@ -3218,20 +3218,20 @@ "type": "github" } ], - "time": "2026-07-05T06:31:06+00:00" + "time": "2026-08-22T07:38:16+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", - "version": "2.0.4", + "version": "2.0.5", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", - "reference": "6b5571001a7f04fa0422254c30a0017ec2f2cacc" + "reference": "67bedd65c24bc72840afc45aed48b1059dd44bec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/6b5571001a7f04fa0422254c30a0017ec2f2cacc", - "reference": "6b5571001a7f04fa0422254c30a0017ec2f2cacc", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/67bedd65c24bc72840afc45aed48b1059dd44bec", + "reference": "67bedd65c24bc72840afc45aed48b1059dd44bec", "shasum": "" }, "require": { @@ -3241,7 +3241,8 @@ "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^9.6", + "shipmonk/name-collision-detector": "^2.1" }, "type": "phpstan-extension", "extra": { @@ -3266,9 +3267,9 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", - "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/2.0.4" + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/2.0.5" }, - "time": "2026-02-09T13:21:14+00:00" + "time": "2026-07-22T06:50:43+00:00" }, { "name": "phpstan/phpstan-phpunit", diff --git a/includes/Post_Type_Base.php b/includes/Post_Type_Base.php index 00c959cc8005..36719e78d3d0 100644 --- a/includes/Post_Type_Base.php +++ b/includes/Post_Type_Base.php @@ -368,7 +368,7 @@ public function on_plugin_uninstall(): void { 'suppress_filters' => false, 'post_status' => 'any', 'post_type' => $this->get_slug(), - 'posts_per_page' => -1, + 'posts_per_page' => -1, // phpcs:ignore WordPressVIPMinimum.Performance.NoPaging.posts_per_page_posts_per_page -- We need to delete all posts. ] ); diff --git a/includes/Settings.php b/includes/Settings.php index b2d426f56d15..6dce3f9378c2 100644 --- a/includes/Settings.php +++ b/includes/Settings.php @@ -577,7 +577,7 @@ protected function get_registered_options(): array { $default_schema = [ 'type' => empty( $args['type'] ) ? null : $args['type'], 'description' => empty( $args['description'] ) ? '' : $args['description'], - 'default' => $args['default'] ?? null, + 'default' => $args['default'], ]; $schema = array_merge( $default_schema, $rest_args['schema'] ); diff --git a/includes/templates/frontend/single-web-story.php b/includes/templates/frontend/single-web-story.php index 7ed61e5072f1..6152a7953452 100644 --- a/includes/templates/frontend/single-web-story.php +++ b/includes/templates/frontend/single-web-story.php @@ -45,6 +45,7 @@ 'web_stories_revision_for_' . $current_post->ID ) ) { + // @phpstan-ignore cast.string $rev_id = absint( sanitize_text_field( (string) wp_unslash( $_GET['rev_id'] ) ) ); $revision_post = get_post( $rev_id );