Loomio
Wed 15 Jan 2014 2:34PM

[PSR-5] Omitting the variable name from @param and @type?

BS Bernhard Schussek Public Seen by 7

(this was copied from the actual PHP-FIG ML)

Dear all,

I would like to ask for your input in the following matter.

A few people in our community have indicated to me that they consider the usage of
the variable name in the @param and @type (and also @var) to be redundant and
that it does not add value.

BS

Bernhard Schussek Wed 15 Jan 2014 2:35PM

some discussion takes place here...

BS

Bernhard Schussek Wed 15 Jan 2014 2:48PM

Testing code

/**
 * @type Foo
 */
protected $bar;
BS

Bernhard Schussek Wed 15 Jan 2014 2:50PM

markdown apparently doesn't work (yet) for vote descriptions (on the right)