Update phpdocs (static return types)

Also made the Closure return consisten use \Closure and some small typos
Merge branch '4.0'