<?php

use %a
class ProjectServiceContainer extends Container
{%a
    public function getFooService($lazyLoad = true)
    {
        if ($lazyLoad) {
            $container = $this;

            return $this->services['foo'] =%sstdClass_%s(
                function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) use ($container) {
                    $wrappedInstance = $container->getFooService(false);

                    $proxy->setProxyInitializer(null);

                    return true;
                }
            );
        }

        return new \stdClass();
    }
}

class stdClass_%s extends \stdClass implements \ProxyManager\%s
{%a}%A
<?php

use %a
class ProjectServiceContainer extends Container
{%a
    public function getFooService($lazyLoad = true)
    {
        if ($lazyLoad) {
            $container = $this;

            return $this->services['foo'] =%sstdClass_%s(
                function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) use ($container) {
                    $wrappedInstance = $container->getFooService(false);

                    $proxy->setProxyInitializer(null);

                    return true;
                }
            );
        }

        return new \stdClass();
    }
}

class stdClass_%s extends %SstdClass implements \ProxyManager\%s
{%a}%A

Fix PHP 7.1 related failures
Fix PHP 7.1 related failures

