Skip to content

Commit c614417

Browse files
author
Justin Vogt
committed
Chore: Add phpstan ignore comment for already narrowed type in add_ability method
1 parent cd4396b commit c614417

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Loader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ public function add_ability( string $ability_class ): void {
141141
$this->abilities[ $ability_class::get_name() ] = $ability_class;
142142

143143
$category_class = $ability_class::get_category();
144+
145+
// @phpstan-ignore function.alreadyNarrowedType
144146
if ( ! class_exists( $category_class ) || ! is_subclass_of( $category_class, Ability_Category_Interface::class ) ) {
145147
return;
146148
}

0 commit comments

Comments
 (0)