Swader / diffbot-php-client

[Deprecated - Maintenance mode - use APIs directly please!] The official Diffbot client library
MIT License
53 stars 20 forks source link

Accessing getters on EntityIterator directly sometimes buggy #1

Closed Swader closed 9 years ago

Swader commented 9 years ago

When accessing methods on the EntityIterator directly, one should always get the same results as if accessed directly on the first subelement of the Iterator. However, this was sometimes buggy - e.g. when properties were dynamically generated via certain methods. In such cases, methods should be tried first.

Offending code is __call and __get magic metods inside EntityIterator.