3

I currently use Eclipse Photon PDT for an old PHP application. In this application there's lot of phpdoc comments but some of them are marked as errors.

  • for "@param unknown $form" => "unknown cannot be resolved to a type".
  • idem for "@return Ambigous <multitype:string , multitype:>" => "Ambigous cannot be resolved to a type".

Does someone know how to disable these errors? (because of that all my project files are marked with the error icon and I cannot see which files really have errors).

1 Answer 1

5

Easiest short-term fix is to disable that level of error checking:

Project -> Properties

PHP -> Validation -> Errors/Warnings

Enable project specific settings

Undefined type -> change from Error to Ignore

Better long-term fix is to use the expected type of mixed when the type is unknown or could be most anything.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.