diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-01-04 08:33:42 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-01-04 08:33:42 +0000 |
commit | 65cfcdc9adc89cdb7888dc6d826159a517e60108 (patch) | |
tree | c71f3dcf6d4f6563f486723dcfeaa79a8ad05cc4 /src/datasets | |
parent | d88ada317ea7222cc1e0d6d1ad390d2e1f573d2d (diff) | |
download | zetacomponents-graph-65cfcdc9adc89cdb7888dc6d826159a517e60108.zip zetacomponents-graph-65cfcdc9adc89cdb7888dc6d826159a517e60108.tar.gz |
- Thanks for Johannes Schlueter poiting me to this
# Traverseable is the generic interface for Iterator, IteratorAggregate and
# some more internal classes which can be used with foreach
# http://www.php.net/~helly/php/ext/spl/interfaceTraversable.html
Diffstat (limited to 'src/datasets')
-rw-r--r-- | src/datasets/array.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datasets/array.php b/src/datasets/array.php index 076a395..44882be 100644 --- a/src/datasets/array.php +++ b/src/datasets/array.php @@ -39,7 +39,7 @@ class ezcGraphArrayDataSet extends ezcGraphDataSet protected function createFromArray( $data = array() ) { if ( !is_array( $data ) && - !( $data instanceof Iterator ) ) + !( $data instanceof Traversable ) ) { throw new ezcGraphInvalidArrayDataSourceException( $data ); } |