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

Resolve issues with traits in ClassScanner #59

Merged
merged 1 commit into from
Jun 28, 2016
Merged

Resolve issues with traits in ClassScanner #59

merged 1 commit into from
Jun 28, 2016

Conversation

djmattyg007
Copy link
Contributor

- Only the first use statement would be accounted for when getting lists
  of traits, due to unnecessary break statements at the end of the loop.
  Fixes #58
- If one of the methods touched by this commit, such as getTraitNames(),
  or getTraits(), which calls getTraitNames(), was called as the first
  action on this class, no traits would be returned, due to the fact
  that scan() was not called at the start of the method. Fixes #57
@djmattyg007
Copy link
Contributor Author

I'd really appreciate it if this and #61 could be reviewed. I'm writing a piece of software that depends on these issues being resolved

@djmattyg007
Copy link
Contributor Author

Is there a reason why this wasn't looked at before the release of v3.0.3?

@weierophinney
Copy link
Member

@djmattyg007 Honestly, I accidentally skipped over it when reviewing PRs yesterday. It looks like we'll be doing a 3.0.4 quite soon, though, so I'll merge this now and target that version.

@weierophinney weierophinney added this to the 3.0.4 milestone Jun 28, 2016
@weierophinney weierophinney merged commit a306dc0 into zendframework:master Jun 28, 2016
weierophinney added a commit that referenced this pull request Jun 28, 2016
weierophinney added a commit that referenced this pull request Jun 28, 2016
weierophinney added a commit that referenced this pull request Jun 28, 2016
weierophinney added a commit that referenced this pull request Jun 28, 2016
basz added a commit to basz/zend-code that referenced this pull request Sep 28, 2016
* 'master' of https://github.com/zendframework/zend-code: (39 commits)
  Fix Travis code convention
  Fix Travis code convention
  Fix Travis code convention
  Fix Travis code convention
  1. Fix ClassScanner::getInterfaces() which don't work with Interface. 2. add TestCase  ClassScannerTest::testGetInterfacesFromInterface().
  Remove fast_finish flag
  Bumped to next dev version (3.0.5)
  Added CHANGELOG for zendframework#75
  Separated new tests to separate methods
  testCorrectExtendNamesFromGlobalNamespace
  add tests
  Added CHANGELOG for zendframework#59
  Update ClassGenerator.php
  fast fix
  Bumped to next dev version (3.0.4)
  Set date for 3.0.3
  Added CHANGELOG for zendframework#72
  Added CHANGELOG for zendframework#69
  Added CHANGELOG for zendframework#61
  Provide a fix for issue zendframework#70
  ...
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.

2 participants