zendframework/zf2 — pull request #865 by mwillbanks (2012-03-01 01:56:26+00:00)
Title: Session Type Hinting Changes

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 optional types of things.

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.

BC Breaks:
* Any attributes that could type hinted values are now type hinted
*