I skipped that because of the performance impact. `get_class` throws
warnings as well...
On 3 Oct 2013 11:41, "Blanchon Vincent" <notifications@github.com> wrote:

> In src/ProxyManager/Factory/AccessInterceptorScopeLocalizerFactory.php:
>
> > + * @license MIT
> > + */
> > +class AccessInterceptorScopeLocalizerFactory extends AbstractBaseFactory
> > +{
> > +    /**
> > +     * @param object     $instance           the object to be localized within the access interceptor
> > +     * @param \Closure[] $prefixInterceptors an array (indexed by method name) of interceptor closures to be called
> > +     *                                       before method logic is executed
> > +     * @param \Closure[] $suffixInterceptors an array (indexed by method name) of interceptor closures to be called
> > +     *                                       after method logic is executed
> > +     *
> > +     * @return \ProxyManager\Proxy\AccessInterceptorInterface
> > +     */
> > +    public function createProxy($instance, array $prefixInterceptors = array(), array $suffixInterceptors = array())
> > +    {
> > +        $className = get_class($instance);
>
> We should check if it's an object and throw an exception ? (same thing to
> do in other proxy)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Ocramius/ProxyManager/pull/83/files#r6737689>
> .
>