You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #375, I noticed that there were other errors that did not have anything to do with tags such as @property, @return and @throws. I did not fix these errors because they did not have anything to do with #277 and #358. However, I think it's useful to document my findings, and maybe one day, we will do something about them. At this time, I don't believe any of them are pressing enough to warrant spending any development time on them, but here they are for documentation purposes, broken down by class.
Issues according to PHPStorm:
Recurly_Base:
1. Uses DOMDocument without including ext-dom in composer.json (this lib is included in php installs by default)
2. Uses LIBXML_NOBLANKS without including ext-libxml in composer.json (this lib is included in php installs by default)
3. Uses $this->getNodeName() which is implemented by subclasses, not this abstract class
4. Uses $this->updateErrorAttributes() which is implemented by subclasses, not this abstract class
5. Uses XML_TEXT_NODE without including ext-dom in composer.json (this lib is included in php installs by default)
6. Uses XML_ELEMENT_NODE without including ext-dom in composer.json (this lib is included in php installs by default)
7. Accesses protected property _objects of Recurly_Pager
8. Complains about how $node->getAttribute() is not found, even though it definitely exists according to the PHP docs
9. Complains about how $node->hasAttribute() is not found, even though it definitely exists according to the PHP docs
10. Complains about how $new_obj->setHref() is not found, even though it's always a Recurly_Resource which has this method because it extends Recurly_Base
Recurly_Client
1. Uses mb_internal_encoding without including ext-mbstring in composer.json (even though the docs say this is a builtin)
Recurly_CurrencyList
1. Complains about how $node->appendChild() is not found, even though it definitely exists according to the PHP docs
2. Complains about how $doc->createElement() is not found, even though it definitely exists according to the PHP docs
Recurly_CustomField
1. Complains about how $node->appendChild() is not found, even though it definitely exists according to the PHP docs
2. Complains about how $doc->createElement() is not found, even though it definitely exists according to the PHP docs
Recurly_CustomFieldList
1. Complains about how $node->appendChild() is not found, even though it definitely exists according to the PHP docs
2. Complains about how $doc->createElement() is not found, even though it definitely exists according to the PHP docs
3. Complains about how $customFieldsNode->hasChildNodes() is not found, even though it definitely exists according to the PHP docs
Recurly_PushNotification
1. Uses simplexml_load_string without including ext-mbstring in composer.json (even though the docs say this is a builtin)
2. Same with SimpleXMLElement
Recurly_js
1. Do we even need this class?
2. Because of some weird syntax I don't recognize, PHPStorm can't find $rjs->get_signature()
Recurly_Resource
1. Uses DOMDocument without including ext-dom in composer.json (this lib is included in php installs by default)
2. Uses LIBXML_NOEMPTYTAG without including ext-libxml in composer.json (this lib is included in php installs by default)
While working on #375, I noticed that there were other errors that did not have anything to do with tags such as
@property
,@return
and@throws
. I did not fix these errors because they did not have anything to do with #277 and #358. However, I think it's useful to document my findings, and maybe one day, we will do something about them. At this time, I don't believe any of them are pressing enough to warrant spending any development time on them, but here they are for documentation purposes, broken down by class.Issues according to PHPStorm:
Recurly_Base:
1. Uses DOMDocument without including
ext-dom
in composer.json (this lib is included in php installs by default)2. Uses LIBXML_NOBLANKS without including
ext-libxml
in composer.json (this lib is included in php installs by default)3. Uses
$this->getNodeName()
which is implemented by subclasses, not this abstract class4. Uses
$this->updateErrorAttributes()
which is implemented by subclasses, not this abstract class5. Uses XML_TEXT_NODE without including
ext-dom
in composer.json (this lib is included in php installs by default)6. Uses XML_ELEMENT_NODE without including
ext-dom
in composer.json (this lib is included in php installs by default)7. Accesses protected property
_objects
of Recurly_Pager8. Complains about how
$node->getAttribute()
is not found, even though it definitely exists according to the PHP docs9. Complains about how
$node->hasAttribute()
is not found, even though it definitely exists according to the PHP docs10. Complains about how
$new_obj->setHref()
is not found, even though it's always a Recurly_Resource which has this method because it extends Recurly_BaseRecurly_Client
1. Uses
mb_internal_encoding
without includingext-mbstring
in composer.json (even though the docs say this is a builtin)Recurly_CurrencyList
1. Complains about how
$node->appendChild()
is not found, even though it definitely exists according to the PHP docs2. Complains about how
$doc->createElement()
is not found, even though it definitely exists according to the PHP docsRecurly_CustomField
1. Complains about how
$node->appendChild()
is not found, even though it definitely exists according to the PHP docs2. Complains about how
$doc->createElement()
is not found, even though it definitely exists according to the PHP docsRecurly_CustomFieldList
1. Complains about how
$node->appendChild()
is not found, even though it definitely exists according to the PHP docs2. Complains about how
$doc->createElement()
is not found, even though it definitely exists according to the PHP docs3. Complains about how
$customFieldsNode->hasChildNodes()
is not found, even though it definitely exists according to the PHP docsRecurly_PushNotification
1. Uses
simplexml_load_string
without includingext-mbstring
in composer.json (even though the docs say this is a builtin)2. Same with SimpleXMLElement
Recurly_js
1. Do we even need this class?
2. Because of some weird syntax I don't recognize, PHPStorm can't find
$rjs->get_signature()
Recurly_Resource
1. Uses DOMDocument without including
ext-dom
in composer.json (this lib is included in php installs by default)2. Uses LIBXML_NOEMPTYTAG without including
ext-libxml
in composer.json (this lib is included in php installs by default)Recurly_Response
1. Can't find
$object->getErrors()
Recurly_Subscription
1. Similar problems with the cant find node stuff
Recurly_SubscriptionAddOn
1. Similar problems with the cant find node stuff
The text was updated successfully, but these errors were encountered: