Changeset 63357
- Timestamp:
- 08/27/2026 03:45:40 AM (26 hours ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 deleted
- 6 edited
-
phpstan.neon.dist (modified) (1 diff)
-
src/wp-content/themes/twentyfourteen/inc/widgets.php (modified) (2 diffs)
-
src/wp-includes/class-wp-query.php (modified) (2 diffs)
-
src/wp-includes/query.php (modified) (2 diffs)
-
tests/phpstan/baselines/deadCode.unreachable.neon (modified) (1 diff)
-
tests/phpstan/baselines/if.alwaysTrue.neon (modified) (1 diff)
-
tests/phpstan/baselines/while.alwaysFalse.neon (deleted)
-
tests/phpstan/baselines/while.alwaysTrue.neon (deleted)
-
tests/phpunit/tests/theme/twentyFourteenEphemeraWidget.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpstan.neon.dist
r63351 r63357 86 86 - tests/phpstan/baselines/varTag.noVariable.neon 87 87 - tests/phpstan/baselines/variable.undefined.neon 88 - tests/phpstan/baselines/while.alwaysFalse.neon89 - tests/phpstan/baselines/while.alwaysTrue.neon90 88 # phpstan:baselines end 91 89 -
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r62893 r63357 138 138 $tmp_content_width = $GLOBALS['content_width']; 139 139 $GLOBALS['content_width'] = 306; 140 // The global is unset until a loop has run, so this may be reached before it exists. 141 $tmp_more = $GLOBALS['more'] ?? null; 140 142 141 143 echo $args['before_widget']; … … 149 151 while ( $ephemera->have_posts() ) : 150 152 $ephemera->the_post(); 151 $tmp_more = $GLOBALS['more'];152 153 $GLOBALS['more'] = 0; 153 154 ?> -
trunk/src/wp-includes/class-wp-query.php
r62956 r63357 3840 3840 * @since 1.5.0 3841 3841 * 3842 * @phpstan-impure 3843 * 3842 3844 * @return bool True if posts are available, false if end of the loop. 3843 3845 */ … … 3929 3931 * 3930 3932 * @since 2.2.0 3933 * 3934 * @phpstan-impure 3931 3935 * 3932 3936 * @return bool True if comments are available, false if no more comments. -
trunk/src/wp-includes/query.php
r62664 r63357 957 957 * @global WP_Query $wp_query WordPress Query object. 958 958 * 959 * @phpstan-impure 960 * 959 961 * @return bool True if posts are available, false if end of the loop. 960 962 */ … … 1036 1038 * 1037 1039 * @global WP_Query $wp_query WordPress Query object. 1040 * 1041 * @phpstan-impure 1038 1042 * 1039 1043 * @return bool True if comments are available, false if no more comments. -
trunk/tests/phpstan/baselines/deadCode.unreachable.neon
r63301 r63357 43 43 identifier: deadCode.unreachable 44 44 count: 2 45 path: ../../../src/wp-admin/includes/dashboard.php46 -47 message: '#^Unreachable statement \- code above always terminates\.$#'48 identifier: deadCode.unreachable49 count: 250 45 path: ../../../src/wp-admin/post.php 51 -52 message: '#^Unreachable statement \- code above always terminates\.$#'53 identifier: deadCode.unreachable54 count: 155 path: ../../../src/wp-content/themes/twentyeleven/archive.php56 -57 message: '#^Unreachable statement \- code above always terminates\.$#'58 identifier: deadCode.unreachable59 count: 160 path: ../../../src/wp-content/themes/twentyeleven/author.php61 -62 message: '#^Unreachable statement \- code above always terminates\.$#'63 identifier: deadCode.unreachable64 count: 165 path: ../../../src/wp-content/themes/twentyeleven/category.php66 -67 message: '#^Unreachable statement \- code above always terminates\.$#'68 identifier: deadCode.unreachable69 count: 170 path: ../../../src/wp-content/themes/twentyeleven/inc/widgets.php71 -72 message: '#^Unreachable statement \- code above always terminates\.$#'73 identifier: deadCode.unreachable74 count: 175 path: ../../../src/wp-content/themes/twentyeleven/index.php76 -77 message: '#^Unreachable statement \- code above always terminates\.$#'78 identifier: deadCode.unreachable79 count: 180 path: ../../../src/wp-content/themes/twentyeleven/search.php81 -82 message: '#^Unreachable statement \- code above always terminates\.$#'83 identifier: deadCode.unreachable84 count: 185 path: ../../../src/wp-content/themes/twentyeleven/showcase.php86 -87 message: '#^Unreachable statement \- code above always terminates\.$#'88 identifier: deadCode.unreachable89 count: 190 path: ../../../src/wp-content/themes/twentyeleven/tag.php91 -92 message: '#^Unreachable statement \- code above always terminates\.$#'93 identifier: deadCode.unreachable94 count: 195 path: ../../../src/wp-content/themes/twentyfifteen/archive.php96 -97 message: '#^Unreachable statement \- code above always terminates\.$#'98 identifier: deadCode.unreachable99 count: 1100 path: ../../../src/wp-content/themes/twentyfifteen/index.php101 -102 message: '#^Unreachable statement \- code above always terminates\.$#'103 identifier: deadCode.unreachable104 count: 1105 path: ../../../src/wp-content/themes/twentyfifteen/search.php106 -107 message: '#^Unreachable statement \- code above always terminates\.$#'108 identifier: deadCode.unreachable109 count: 1110 path: ../../../src/wp-content/themes/twentyfourteen/archive.php111 -112 message: '#^Unreachable statement \- code above always terminates\.$#'113 identifier: deadCode.unreachable114 count: 1115 path: ../../../src/wp-content/themes/twentyfourteen/author.php116 -117 message: '#^Unreachable statement \- code above always terminates\.$#'118 identifier: deadCode.unreachable119 count: 1120 path: ../../../src/wp-content/themes/twentyfourteen/category.php121 -122 message: '#^Unreachable statement \- code above always terminates\.$#'123 identifier: deadCode.unreachable124 count: 1125 path: ../../../src/wp-content/themes/twentyfourteen/inc/widgets.php126 -127 message: '#^Unreachable statement \- code above always terminates\.$#'128 identifier: deadCode.unreachable129 count: 1130 path: ../../../src/wp-content/themes/twentyfourteen/index.php131 -132 message: '#^Unreachable statement \- code above always terminates\.$#'133 identifier: deadCode.unreachable134 count: 1135 path: ../../../src/wp-content/themes/twentyfourteen/search.php136 -137 message: '#^Unreachable statement \- code above always terminates\.$#'138 identifier: deadCode.unreachable139 count: 1140 path: ../../../src/wp-content/themes/twentyfourteen/tag.php141 -142 message: '#^Unreachable statement \- code above always terminates\.$#'143 identifier: deadCode.unreachable144 count: 1145 path: ../../../src/wp-content/themes/twentyfourteen/taxonomy-post_format.php146 -147 message: '#^Unreachable statement \- code above always terminates\.$#'148 identifier: deadCode.unreachable149 count: 1150 path: ../../../src/wp-content/themes/twentynineteen/archive.php151 -152 message: '#^Unreachable statement \- code above always terminates\.$#'153 identifier: deadCode.unreachable154 count: 1155 path: ../../../src/wp-content/themes/twentynineteen/index.php156 -157 message: '#^Unreachable statement \- code above always terminates\.$#'158 identifier: deadCode.unreachable159 count: 1160 path: ../../../src/wp-content/themes/twentynineteen/search.php161 -162 message: '#^Unreachable statement \- code above always terminates\.$#'163 identifier: deadCode.unreachable164 count: 1165 path: ../../../src/wp-content/themes/twentyseventeen/archive.php166 -167 message: '#^Unreachable statement \- code above always terminates\.$#'168 identifier: deadCode.unreachable169 count: 1170 path: ../../../src/wp-content/themes/twentyseventeen/index.php171 -172 message: '#^Unreachable statement \- code above always terminates\.$#'173 identifier: deadCode.unreachable174 count: 1175 path: ../../../src/wp-content/themes/twentyseventeen/search.php176 -177 message: '#^Unreachable statement \- code above always terminates\.$#'178 identifier: deadCode.unreachable179 count: 1180 path: ../../../src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php181 -182 message: '#^Unreachable statement \- code above always terminates\.$#'183 identifier: deadCode.unreachable184 count: 1185 path: ../../../src/wp-content/themes/twentysixteen/archive.php186 -187 message: '#^Unreachable statement \- code above always terminates\.$#'188 identifier: deadCode.unreachable189 count: 1190 path: ../../../src/wp-content/themes/twentysixteen/index.php191 -192 message: '#^Unreachable statement \- code above always terminates\.$#'193 identifier: deadCode.unreachable194 count: 1195 path: ../../../src/wp-content/themes/twentysixteen/search.php196 -197 message: '#^Unreachable statement \- code above always terminates\.$#'198 identifier: deadCode.unreachable199 count: 1200 path: ../../../src/wp-content/themes/twentythirteen/archive.php201 -202 message: '#^Unreachable statement \- code above always terminates\.$#'203 identifier: deadCode.unreachable204 count: 1205 path: ../../../src/wp-content/themes/twentythirteen/author.php206 -207 message: '#^Unreachable statement \- code above always terminates\.$#'208 identifier: deadCode.unreachable209 count: 1210 path: ../../../src/wp-content/themes/twentythirteen/category.php211 -212 message: '#^Unreachable statement \- code above always terminates\.$#'213 identifier: deadCode.unreachable214 count: 1215 path: ../../../src/wp-content/themes/twentythirteen/index.php216 -217 message: '#^Unreachable statement \- code above always terminates\.$#'218 identifier: deadCode.unreachable219 count: 1220 path: ../../../src/wp-content/themes/twentythirteen/search.php221 -222 message: '#^Unreachable statement \- code above always terminates\.$#'223 identifier: deadCode.unreachable224 count: 1225 path: ../../../src/wp-content/themes/twentythirteen/tag.php226 -227 message: '#^Unreachable statement \- code above always terminates\.$#'228 identifier: deadCode.unreachable229 count: 1230 path: ../../../src/wp-content/themes/twentythirteen/taxonomy-post_format.php231 -232 message: '#^Unreachable statement \- code above always terminates\.$#'233 identifier: deadCode.unreachable234 count: 1235 path: ../../../src/wp-content/themes/twentytwelve/archive.php236 -237 message: '#^Unreachable statement \- code above always terminates\.$#'238 identifier: deadCode.unreachable239 count: 1240 path: ../../../src/wp-content/themes/twentytwelve/author.php241 -242 message: '#^Unreachable statement \- code above always terminates\.$#'243 identifier: deadCode.unreachable244 count: 1245 path: ../../../src/wp-content/themes/twentytwelve/category.php246 -247 message: '#^Unreachable statement \- code above always terminates\.$#'248 identifier: deadCode.unreachable249 count: 1250 path: ../../../src/wp-content/themes/twentytwelve/index.php251 -252 message: '#^Unreachable statement \- code above always terminates\.$#'253 identifier: deadCode.unreachable254 count: 1255 path: ../../../src/wp-content/themes/twentytwelve/search.php256 -257 message: '#^Unreachable statement \- code above always terminates\.$#'258 identifier: deadCode.unreachable259 count: 1260 path: ../../../src/wp-content/themes/twentytwelve/tag.php261 -262 message: '#^Unreachable statement \- code above always terminates\.$#'263 identifier: deadCode.unreachable264 count: 1265 path: ../../../src/wp-content/themes/twentytwentyone/archive.php266 -267 message: '#^Unreachable statement \- code above always terminates\.$#'268 identifier: deadCode.unreachable269 count: 1270 path: ../../../src/wp-content/themes/twentytwentyone/index.php271 -272 message: '#^Unreachable statement \- code above always terminates\.$#'273 identifier: deadCode.unreachable274 count: 1275 path: ../../../src/wp-content/themes/twentytwentyone/search.php276 46 - 277 47 message: '#^Unreachable statement \- code above always terminates\.$#' -
trunk/tests/phpstan/baselines/if.alwaysTrue.neon
r63023 r63357 33 33 identifier: if.alwaysTrue 34 34 count: 1 35 path: ../../../src/wp-content/themes/twentynineteen/comments.php36 -37 message: '#^If condition is always true\.$#'38 identifier: if.alwaysTrue39 count: 140 35 path: ../../../src/wp-content/themes/twentynineteen/template-parts/footer/footer-widgets.php 41 36 -
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)