Skip to content

Commit

Permalink
Update Namespaces references
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Nov 24, 2018
1 parent 974fbbd commit ee36b0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ foreach ($iterator as $row) {

Just type: `composer require "byjg/anydataset-json=4.0.*"`

#### Running Unit tests

Running the Unit tests
## Running the Unit tests

```php
vendor/bin/phpunit
Expand Down
6 changes: 3 additions & 3 deletions src/JsonDataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace ByJG\AnyDataset\Json;

use ByJG\AnyDataset\Core\GenericIterator;
use ByJG\AnyDataset\Core\Exception\DatasetException;

class JsonDataset
Expand Down Expand Up @@ -56,11 +57,10 @@ public function __construct($json)
* @param string $path
* @param bool $throwErr
* @return GenericIterator
* @throws \ByJG\AnyDataset\Exception\IteratorException
* @throws \ByJG\AnyDataset\Core\Exception\IteratorException
*/
public function getIterator($path = "", $throwErr = false)
{
$iterator = new JsonIterator($this->jsonObject, $path, $throwErr);
return $iterator;
return new JsonIterator($this->jsonObject, $path, $throwErr);
}
}

0 comments on commit ee36b0e

Please sign in to comment.