Tests for issue with unexpected injection.
Remove invalid docblocks.
Fixing an issue, use namespaced attributes for requestedClasses.
Merge pull request #4868 from Spalax/test_di_strange_behavior

Tests for issue with unexpected injection.
[#4868] CS fixes

- braces
Merge branch 'hotfix/4868'

Close #4868
Find traits with TokenArrayScanner

Added T_TRAIT next to T_CLASS and T_INTERFACE.

For php 5.3 T_TRAIT gets defined to not get any errors.