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
Revise docblocks in Zend\Session\ContainerAbstractServiceFactory
Test for issue #4990
Make sure that a use is only added once in ClassGenerator
This commit ensures that if someone adds a use twice it is only added once to the file.
Added tests for issue #4988
If no namespace used do not try to concatenate the namespace

If using ClassGenerator for non namespace classes no methods are found inside classes, as the classname check fails always.
Only try to remove the namespace from a classname if there is a namespace and add backslash for non namespace classes

For non-namespace classes this substr/strlen algorithm removed the first character of the classname.
The slash is needed when generating namespace classes, which use non-namespace classes.
Merge pull request #4981 from pwarnock/hotfix/strip-off-session-container

Revise docblocks in Zend\Session\ContainerAbstractServiceFactory
Merge branch 'hotfix/4981'

Close #4981
Merge pull request #4990 from Danez/patch-2

[Zend-Code] Make sure that a use is only added once in ClassGenerator
Merge branch 'hotfix/4990'

Close #4990
Fix error Undefined variable: class in Zend/ModuleManager/Listener/ServiceListener.php
Add parens for ternary operator
Merge branch 'hotfix/4957'

Close #4957
Merge pull request #4988 from Danez/master

[Zend-Code] Fix Code Generation for non namespace classes