Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
README fix of Zend\Dom\Query
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Cantonnet committed Nov 2, 2013
1 parent 0398b38 commit eb624ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -25,7 +25,7 @@ DD MMM YYY

```php
use Zend\Dom\Document;
$document = new Document($contentOrFile);
$document = new Document($content);
$nodeList = Document\Query::execute($expression, $document, Document\Query::TYPE_CSS);
foreach ($nodeList as $node) {
// ...
Expand All @@ -37,7 +37,7 @@ DD MMM YYY
```php
use Zend\Dom\Document;
foreach (
Document\Query::execute($expression, new Document($contentOrFile, Document\Query::TYPE_CSS)
Document\Query::execute($expression, new Document($content), Document\Query::TYPE_CSS)
as $node
) {
// ...
Expand Down

0 comments on commit eb624ea

Please sign in to comment.