zendframework/zf2 — pull request #4874 by tomphp (2013-07-23 10:17:08+00:00)
Title: Skip AnnotationScanner if class name information can't be found.

Currently when `ClassReflection::getAnnotations()` is called on class which uses a trait and error occurs when the `AnnotationScanner` constructor gets called with `false` for the `$nameInformation` parameter.

In this PR I have simply changed it so that `getAnnotations()` returns `false` instead of creating a new `AnnotationScanner` if `FileScanner::getClassNameInformation()` returns `false`.

This simple causes traits to be skipped, maybe instead more needs to be done here to scan for traits in the scanner, if so let me know.