File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1014,6 +1014,11 @@ static function (Node $node): bool {
1014
1014
}
1015
1015
// If a first level statement is exit/die, it's return type never.
1016
1016
if ($ stmt ->expr instanceof Exit_) {
1017
+ if ($ stmt ->expr ->expr instanceof String_) {
1018
+ if (strpos ($ stmt ->expr ->expr ->value , 'must be overridden ' ) !== false ) {
1019
+ return '' ;
1020
+ }
1021
+ }
1017
1022
return 'never ' ;
1018
1023
}
1019
1024
if (!($ stmt ->expr instanceof FuncCall) || !($ stmt ->expr ->name instanceof Name)) {
Original file line number Diff line number Diff line change @@ -4312,7 +4312,6 @@ public function __call($name, $arguments)
4312
4312
*
4313
4313
* @since 3.1.0
4314
4314
* @abstract
4315
- * @phpstan-return never
4316
4315
*/
4317
4316
public function ajax_user_can()
4318
4317
{
@@ -4324,7 +4323,6 @@ public function ajax_user_can()
4324
4323
*
4325
4324
* @since 3.1.0
4326
4325
* @abstract
4327
- * @phpstan-return never
4328
4326
*/
4329
4327
public function prepare_items()
4330
4328
{
@@ -4571,7 +4569,6 @@ protected function pagination($which)
4571
4569
* @abstract
4572
4570
*
4573
4571
* @return array
4574
- * @phpstan-return never
4575
4572
*/
4576
4573
public function get_columns()
4577
4574
{
@@ -54724,7 +54721,6 @@ class WP_Widget
54724
54721
* @param array $args Display arguments including 'before_title', 'after_title',
54725
54722
* 'before_widget', and 'after_widget'.
54726
54723
* @param array $instance The settings for the particular instance of the widget.
54727
- * @phpstan-return never
54728
54724
*/
54729
54725
public function widget($args, $instance)
54730
54726
{
You can’t perform that action at this time.
0 commit comments