Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,19 @@ public function is_ability_call( FunctionCall $call ): bool {
return false;
}

return str_starts_with( $name, self::ABILITY_PREFIX );
return self::is_ability_function_name( $name );
}

/**
* Checks if a function name refers to an ability.
*
* @since 7.2.0
*
* @param string $function_name The function name to check.
* @return bool True if the function name refers to an ability, false otherwise.
*/
public static function is_ability_function_name( string $function_name ): bool {
return str_starts_with( $function_name, self::ABILITY_PREFIX );
}

/**
Expand Down
Loading
Loading