technosophos / querypath

QueryPath is a PHP library for manipulating XML and HTML. It is designed to work not only with local files, but also with web services and database resources.
http://querypath.org
Other
822 stars 114 forks source link

qr() function returns \QueryPath\DOMQuery, not QueryPath #150

Closed Sarke closed 9 years ago

Sarke commented 9 years ago

It's messing with the auto-completion, and is in general incorrect.

qp_functions.php, line 149

* @return QueryPath

should be

* @return \QueryPath\DOMQuery

as that is what QueryPath::with() returns.

Thanks, Peter

technosophos commented 9 years ago

You're right. The docs for that file were not correctly updated when we released 3.x. I'll fix.