Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Doctrine throws an error for {function} #27

Closed
nzakas opened this issue Feb 12, 2014 · 1 comment
Closed

Doctrine throws an error for {function} #27

nzakas opened this issue Feb 12, 2014 · 1 comment

Comments

@nzakas
Copy link
Member

nzakas commented Feb 12, 2014

Right now, Doctrine throws an error on this:

/**
 * @param {function} foo desc
 */

However, if you capitalize "function", then it's okay:

/**
 * @param {Function} foo desc
 */

This doesn't appear to be a problem with other types ("object" vs. "Object", "string" vs. "String").

@Constellation
Copy link
Member

Nice catch.
This is because function keyword is used for function syntax. We should take care about the above pattern.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants