# Fehler in ProxyFactory / ProxyClassTemplate / executeParent

**URL:** <https://forum.shopware.com/t/fehler-in-proxyfactory-proxyclasstemplate-executeparent/9110>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [8. Oktober 2012 um 20:48 UTC](https://forum.shopware.com/t/fehler-in-proxyfactory-proxyclasstemplate-executeparent/9110 "2012-10-08T20:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ovi](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@ovi](https://forum.shopware.com/u/ovi)\
**Post date:** [8. Oktober 2012 um 20:48 UTC](https://forum.shopware.com/t/fehler-in-proxyfactory-proxyclasstemplate-executeparent/9110/1 "2012-10-08T20:48:29Z")

</div>

Nur zur Info, falls jemand auf ein ähnliches Problem stößt, betrifft auch 3.5 in Kombination mit PHP 5.3: Enlight\_Hook\_ProxyFactory::$proxyClassTemplate (engine/Library/Enlight/Hook/ProxyFactory.php) ` public function executeParent($method, $args=null) { return call\_user\_func\_array(array($this, \'parent::\' . $method), $args); } ` Seit PHP 5.3 ist es wohl so, dass null als zweites Argument zur Folge hat, dass der Rückgabewert insgesamt null wird. Lösung: In der Membervariable $proxyClassTemplate den zweiten Parameter $args=null der Methode executeParent ändern in $args = array(), danach die entsprechenden Proxies löschen, oder executeParent nur mit einem expliziten zweiten Argument aufrufen (nicht null).
