protected function pStmt_ClassMethod(Stmt\ClassMethod $node)
    {
        $classMethod = parent::pStmt_ClassMethod($node);

        if ($node->returnType) {
            $classMethod = str_replace(') :', '):', $classMethod);
        }

        return $classMethod;
    }
protected function pStmt_ClassMethod(Stmt\ClassMethod $node)
    {
        $classMethod = parent::pStmt_ClassMethod($node);

        if ($node->returnType) {
            $classMethod = str_replace(') :', '):', $classMethod);
        }

        return $classMethod;
    }
protected function pStmt_ClassMethod ( Stmt \ ClassMethod $ node ) { $ classMethod = parent :: pStmt_ClassMethod ( $ node ) ; if ( $ node -> returnType ) { $ classMethod = str_replace ( ') :' , '):' , $ classMethod ) ; } return $ classMethod ; }
Overridden to change coding standards.

Before:
public function getFoo() : string

After
public function getFoo(): string
Overridden to change coding standards .