Cannot access protected property Instant_Articles_Post::$instant_article
-
Hello,
I was just testing the latest version of the plugin and noticed there’s been added following definition within this commit – https://plugins.trac.ww.wp.xz.cn/browser/fb-instant-articles/trunk/class-instant-articles-post.php?rev=2800485#L65
/** * @var InstantArticle|mixed|null */ private $instant_article;If case somebody is using within their code similar type of logic as per the example here https://plugins.trac.ww.wp.xz.cn/browser/fb-instant-articles/trunk/wpcom-helper.php?rev=2800879#L24 it throws fatal error, because instant_article property is declared as protected, whereas before it wasn’t defined
What would be the best way around this?
Thanks a lot.
The topic ‘Cannot access protected property Instant_Articles_Post::$instant_article’ is closed to new replies.