zendframework/zf2 — pull request #1472 by Maks3w (2012-06-09 09:37:30+00:00)
Title: [zen-54] Add type hintings and optimize argument type check

* Add type hinting where possible without broke interface contracts.

* Optimize argument type check:

From:

```php
if (is_string($arg) {
$arg = new Class();
}

if (!$arg instanceof Class) {
throw Exception;
}
```

To:

```php
if (is_string($arg) {
$arg = new Class();
} elseif (!$arg instanceof Class) {
throw Exception;
}
```

[![Build Status](https://secure.travis-ci.org/Maks3w/zf2.png?branch=zen-54)](http://travis-ci.org/Maks3w/zf2)