zendframework / zend-code

BSD 3-Clause "New" or "Revised" License
1.68k stars 78 forks source link

Feature/docblock method chaining consistency #99

Closed tdutrion closed 7 years ago

tdutrion commented 8 years ago

As discussed in fluent interface return type vs return self #7193, this changes remove occurrences of class names and self keyword from the DocBlocks

tdutrion commented 7 years ago

Updated to latest develop branch changes + edited according to the main discussion.

Ocramius commented 7 years ago

From that discussion, @weierophinney clarified at the end (and I agree with it):

In the case of fluent interfaces self is almost certainly what we want to use.

Generally, self should be used all the time, as it reduces the amount of diffing needed when refactoring anything at all.

Marking this one as invalid