Skip to content

Commit

Permalink
Removing var_dump calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Aug 3, 2013
1 parent 6da92a4 commit e7ef10a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/hydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class Foo
$hydrator = new $hydratorClass();
$foo = new Foo();

var_dump('Extracted data:', $hydrator->extract($foo)); // array('foo' => 1, 'bar' => 2, 'baz' => 3);
echo "Extracted data:\n";
var_export($hydrator->extract($foo)); // array('foo' => 1, 'bar' => 2, 'baz' => 3);

$hydrator->hydrate(
array(
Expand All @@ -27,4 +28,5 @@ class Foo
$foo
);

var_dump('Object hydrated with new data:', $foo); // the object with the new properties set
echo "Object hydrated with new data:\n";
var_export($foo);

0 comments on commit e7ef10a

Please sign in to comment.