Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ includes:
- tests/phpstan/baselines/property.private.neon
- tests/phpstan/baselines/return.type.neon
- tests/phpstan/baselines/return.unusedType.neon
- tests/phpstan/baselines/varTag.noVariable.neon
- tests/phpstan/baselines/variable.undefined.neon
# phpstan:baselines end

Expand Down
1 change: 0 additions & 1 deletion src/wp-admin/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* We are installing WordPress.
*
* @since 1.5.1
* @var bool
*/
define( 'WP_INSTALLING', true );

Expand Down
1 change: 0 additions & 1 deletion src/wp-admin/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* This is a profile page.
*
* @since 2.5.0
* @var bool
*/
define( 'IS_PROFILE_PAGE', true );

Expand Down
1 change: 0 additions & 1 deletion src/wp-admin/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* We are upgrading WordPress.
*
* @since 1.5.1
* @var bool
*/
define( 'WP_INSTALLING', true );

Expand Down
2 changes: 0 additions & 2 deletions src/wp-cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

/**
* Tell WordPress the cron task is running.
*
* @var bool
*/
define( 'DOING_CRON', true );

Expand Down
9 changes: 0 additions & 9 deletions src/wp-includes/class-wp-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -2904,7 +2904,6 @@ public function get_posts() {
_prime_comment_caches( $comment_ids );

// Convert to WP_Comment.
/** @var WP_Comment[] */
$this->comments = array_map( 'get_comment', $comment_ids );
$this->comment_count = count( $this->comments );

Expand Down Expand Up @@ -3310,7 +3309,6 @@ public function get_posts() {
return $post_parents;
} else {
_prime_post_caches( $post_ids, $query_vars['update_post_term_cache'], $query_vars['update_post_meta_cache'] );
/** @var WP_Post[] */
$this->posts = array_map( 'get_post', $post_ids );
}
}
Expand All @@ -3320,7 +3318,6 @@ public function get_posts() {
if ( 'ids' === $query_vars['fields'] ) {
$this->posts ??= $wpdb->get_col( $this->request );

/** @var int[] */
$this->posts = array_map( 'intval', $this->posts );
$this->post_count = count( $this->posts );
$this->set_found_posts( $query_vars, $limits );
Expand Down Expand Up @@ -3451,7 +3448,6 @@ public function get_posts() {

// Convert to WP_Post objects.
if ( $this->posts ) {
/** @var WP_Post[] */
$this->posts = array_map( 'get_post', $this->posts );
}

Expand Down Expand Up @@ -3571,7 +3567,6 @@ public function get_posts() {
_prime_comment_caches( $comment_ids );

// Convert to WP_Comment.
/** @var WP_Comment[] */
$this->comments = array_map( 'get_comment', $comment_ids );
$this->comment_count = count( $this->comments );
}
Expand Down Expand Up @@ -3645,7 +3640,6 @@ public function get_posts() {
if ( $this->posts ) {
$this->post_count = count( $this->posts );

/** @var WP_Post[] */
$this->posts = array_map( 'get_post', $this->posts );

if ( $query_vars['cache_results'] ) {
Expand All @@ -3657,7 +3651,6 @@ public function get_posts() {
}
}

/** @var WP_Post */
$this->post = reset( $this->posts );
} else {
$this->post_count = 0;
Expand Down Expand Up @@ -3747,7 +3740,6 @@ public function next_post() {

++$this->current_post;

/** @var WP_Post */
$this->post = $this->posts[ $this->current_post ];
return $this->post;
}
Expand Down Expand Up @@ -3894,7 +3886,6 @@ public function rewind_posts() {
public function next_comment() {
++$this->current_comment;

/** @var WP_Comment */
$this->comment = $this->comments[ $this->current_comment ];
return $this->comment;
}
Expand Down
4 changes: 1 addition & 3 deletions src/wp-includes/kses.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Using `CUSTOM_TAGS` is not recommended and should be considered deprecated. The
* {@see 'wp_kses_allowed_html'} filter is more powerful and supplies context.
*
* When using this constant, make sure to set all of these globals to arrays:
* To use custom tags, define this constant as `true` and set all of these globals to arrays:
*
* - `$allowedposttags`
* - `$allowedtags`
Expand All @@ -45,8 +45,6 @@
*
* @see wp_kses_allowed_html()
* @since 1.2.0
*
* @var array[]|false Array of default allowable HTML tags, or false to use the defaults.
*/
if ( ! defined( 'CUSTOM_TAGS' ) ) {
define( 'CUSTOM_TAGS', false );
Expand Down
3 changes: 0 additions & 3 deletions src/wp-includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

/**
* Version number for our API.
*
* @var string
*/
define( 'REST_API_VERSION', '2.0' );

Expand Down Expand Up @@ -481,7 +479,6 @@ function rest_api_loaded() {
* Whether this is a REST Request.
*
* @since 4.4.0
* @var bool
*/
define( 'REST_REQUEST', true );

Expand Down
2 changes: 0 additions & 2 deletions src/xmlrpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Whether this is an XML-RPC Request.
*
* @var bool
*/
define( 'XMLRPC_REQUEST', true );

Expand Down
60 changes: 0 additions & 60 deletions tests/phpstan/baselines/varTag.noVariable.neon

This file was deleted.

Loading