zendframework/zf2 — pull request #869 by mwillbanks (2012-03-01 19:33:33+00:00)
Title: zend\session type hinting

The goal for this change is really around some of the massive problems you may find around DI when you are not type hinting; additionally the argument can be made that with DI not accepting just an object seems foolish. This change implements proper type hinting for objects and removes all of the various ways (string|object) type parameters.

Not only does this improve our ability on maintenance and bugs; it also helps to ensure consistency and adaptability of the framework.

Changes:
* Type hint all possible values; remove the possibility of not passing in objects when an object should be necessary.
* Remove unit tests when strings or arrays or the like may have been previously passed instead of an object.
* AbstractManager will no longer accept a saveHandler nor a storage option in the configuration array / object / etc. This is the largest BC break but did not make sense since the arguments are optional anyhow.