Documentation is a bit misleading.
SplFileInfo->isDir() and other classes (e.g. DirectoryIterator->isDir()) return TRUE for symlinks of directories. Better use getType() method instead, which returns 'link' for symlinks.
This was reported long time ago - https://bugs.php.net/bug.php?id=72364 , but docs are still not fixed.