src/Decorator/Builder.php
protected function checkParams($params)
    {
        foreach ($params as $type) {
            if ($type instanceof Decorator) {
                $this->errors[] = "Parameter is not well instantiated [" . (string)$type . "]";
            }
        }
    }
protected function checkParams($params)
    {
        foreach ($params as $type) {
            if ($type instanceof Decorator) {
                $this->errors[] = "Parameter is not well instantiated [" . (string)$type . "]";
            }
        }
    }
protected function checkParams ( $ params ) { foreach ( $ params as $ type ) { if ( $ type instanceof Decorator ) { $ this -> errors [ ] = "Parameter is not well instantiated [" . ( string ) $ type . "]" ; } } }
Check if parameters are usable
Mainly if parameters are still decorators it will break the injection
@param $params
Check if parameters are usable Mainly if parameters are still decorators it will break the injection