Fix PHP 5.3 problem.
Closures do not have scope in 5.3, so we cannot use self:: in them. Moved self::getInteger(...)
out of the closure.