Move segments processing
Useless foreach constructor
Merge pull request #5330 from lucasmichot/4.2-support-namespaceditemresolver

[4.2] Support : Segments don't need to be processed for namespaces
Replace 'dynamic' keyword with 'mixed'

'dynamic' is not a valid keyword, see
http://phpdoc.org/docs/latest/guides/types.html#keywords
Use FQN in phpdocs
Add method hasBag to ViewErrorBag

When redirecting withErrors($validator) the edit form can show individual messages. But to show a generic message, something like: please check the red marked field below I don't know anything else but to flash a extra variable. This method would remedy that. Now I could check: $errors->hasBag() to see if the form is a redirect from a post with a errors message bag or a first get for input.
Fix a few formatting issues.
[Bugfix] Illuminate\Support\Fluent should allow to use stdClass/object instead of just array.

The behaviour was change since "Useless foreach in constructor" was accepted from laravel/framework#5342

Signed-off-by: crynobone <crynobone@gmail.com>
Merging. conflicts.