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/method.childParameterType.neon
- tests/phpstan/baselines/method.unused.neon
- tests/phpstan/baselines/notIdentical.alwaysTrue.neon
- tests/phpstan/baselines/nullCoalesce.property.neon
- tests/phpstan/baselines/offsetAccess.nonOffsetAccessible.neon
- tests/phpstan/baselines/offsetAccess.notFound.neon
- tests/phpstan/baselines/offsetAssign.valueType.neon
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/class-wp-locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class WP_Locale {
* Default is 'words'.
*
* @since 6.2.0
* @var string
* @var string|null
*/
public $word_count_type;

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/general-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4980,7 +4980,7 @@ function paginate_links( $args = '' ) {
$url_parts = explode( '?', $pagenum_link );

// Get max pages and current page out of the current query, if available.
$total = $wp_query->max_num_pages ?? 1;
$total = ! empty( $wp_query->max_num_pages ) ? $wp_query->max_num_pages : 1;
$current = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1;

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function prepare_item_for_response( $item, $request ) {
}

if ( rest_is_field_included( 'template', $fields ) ) {
$data['template'] = $post_type->template ?? array();
$data['template'] = $post_type->template;
}

if ( rest_is_field_included( 'template_lock', $fields ) ) {
Expand Down
35 changes: 0 additions & 35 deletions tests/phpstan/baselines/nullCoalesce.property.neon

This file was deleted.

Loading