PhpDoc: fix return types and other incompatibilities

Fix some wrong return types and other wrong phpdoc-types