@@ -54,7 +54,6 @@ private function __construct() {
5454 */
5555 protected function get_api () {
5656 if ( null === $ this ->mailpoet_api && class_exists ( '\MailPoet\API\API ' ) ) {
57- // @phan-suppress-next-line PhanUndeclaredClassMethod -- dynamic plugin API
5857 $ this ->mailpoet_api = \MailPoet \API \API ::MP ( 'v1 ' );
5958 }
6059 return $ this ->mailpoet_api ;
@@ -73,7 +72,6 @@ protected function get_or_create_list_id( $mailpoet_api, $list_name = null ) {
7372 $ list_name = $ list_name ? $ list_name : $ default_list_name ;
7473 $ list_description = $ list_name === $ default_list_name ? $ default_list_description : $ list_name ;
7574 try {
76- // @phan-suppress-next-line PhanUndeclaredClassMethod -- dynamic plugin API
7775 $ lists = $ mailpoet_api ->getLists ();
7876 // Look for an existing list with the given name (not deleted)
7977 foreach ( $ lists as $ list ) {
@@ -82,7 +80,6 @@ protected function get_or_create_list_id( $mailpoet_api, $list_name = null ) {
8280 }
8381 }
8482 // Not found, create it
85- // @phan-suppress-next-line PhanUndeclaredClassMethod -- dynamic plugin API
8683 $ new_list = $ mailpoet_api ->addList (
8784 array (
8885 'name ' => $ list_name ,
@@ -105,7 +102,6 @@ protected function get_or_create_list_id( $mailpoet_api, $list_name = null ) {
105102 */
106103 protected function add_subscriber_to_list ( $ mailpoet_api , $ list_id , $ subscriber_data ) {
107104 try {
108- // @phan-suppress-next-line PhanUndeclaredClassMethod -- dynamic plugin API
109105 $ subscriber = $ mailpoet_api ->addSubscriber (
110106 $ subscriber_data ,
111107 array ( $ list_id )
0 commit comments