Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Use a bound constraint and right package for the doctrine annotations #25

Merged
merged 1 commit into from
Nov 19, 2015

Conversation

stof
Copy link
Contributor

@stof stof commented Nov 19, 2015

Installing the full doctrine/common package is not necessary when only doctrine/annotations is used

Ocramius added a commit that referenced this pull request Nov 19, 2015
@Ocramius Ocramius merged commit 9ba823e into zendframework:master Nov 19, 2015
Ocramius added a commit that referenced this pull request Nov 19, 2015
@Ocramius
Copy link
Member

@stof thanks!

master: aa96152
develop: b980379

@Ocramius Ocramius self-assigned this Nov 19, 2015
@Ocramius Ocramius added the bug label Nov 19, 2015
@stof stof deleted the use_bound_constraints branch November 19, 2015 09:02
@Ocramius Ocramius added this to the 2.6.1 milestone Nov 19, 2015
@stof
Copy link
Contributor Author

stof commented Nov 19, 2015

@Ocramius I have another question regarding the dev requirements. Why is PHP-CS-Fixer fixed at 1.7.* which is very old ? Many thing have been fixed in later minor versions

@Ocramius
Copy link
Member

@stof we've been bitten many times by CS fixer minor versions, although the maintainer became more careful. We may as well bump it (via ^) now.

@Maks3w
Copy link
Member

Maks3w commented Nov 19, 2015

  1. PHP-CS-Fixer has not being BC Safe (too many changes in the default fixers)
  2. We are replacing now with PHPCS

@Ocramius
Copy link
Member

We are replacing now with PHPCS

Wasn't aware of this - the author of the cs fixer seemed to be very collaborative/helpful, no?

@Maks3w
Copy link
Member

Maks3w commented Nov 19, 2015

I know. @weierophinney started to use phpcs for all v3 refactors.

@weierophinney
Copy link
Member

@Ocramius I have several reasons for switching to phpcs:

  • It's tremendously faster, both for verifying CS as well as fixing CS issues.
  • When using the PSR-2 ruleset, it validates and fixes only those. php-cs-fixer's PSR-2 ruleset is a superset of its default ruleset, which does substantially more, most of which are things we do not actually want, which means we have to have incredibly large configuration files to exclude things. Additionally, the maintainers of php-cs-fixer keep adding rules to the default ruleset, which is what bites us periodically (new rules then mark code as invalid, despite the fact that it's adhering to PSR-2).

In terms of the authors being collaborative, I've found the phpcs folks to be equally responsive when I've raised issues. As such, it's the latter bullet point that has been the deciding factor for me. Two subsequent runs of the tool over the same code should not raise new errors between versions of the tool.

@weierophinney
Copy link
Member

@Ocramius Did you tag 2.6.1?

@Ocramius
Copy link
Member

@weierophinney nope, just assigned the milestone

weierophinney added a commit that referenced this pull request Nov 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants