update Type Hinting in Closure and doc comments in view template files