kriswallsmith / spork

Experimental library for forking PHP
MIT License
587 stars 52 forks source link

typo in README codesample #5

Closed staabm closed 12 years ago

staabm commented 12 years ago

it reads

$images = new RecursiveDirectoryIterator('/path/to/images');
$images = new RecursiveIteratorIterator($it);

$manager->process($images, function(SplFileInfo $file) {
    // upload this file
});

but should read

$it = new RecursiveDirectoryIterator('/path/to/images');
$images = new RecursiveIteratorIterator($it);

$manager->process($images, function(SplFileInfo $file) {
    // upload this file
});

notice the name of the first var, $it instead of $images.