« Previous | Next » 

Revision ae75de4c

IDae75de4c788700ccaed130856ed6f5680220c104
Parent a65a1afd
Child 01ea9a4d, cde55706

Added by Martin Helmich over 7 years ago

[BUGFIX] Fix "Call to undefined method ...::getPrototype()"

When injecting dependencies that take prototype-scoped objects as
constructor parameter, the ``ProxyClassBuilder`` class tries to
instantiate these objects using the ``getPrototype`` method. This method
is apparently supposed to be implemented by the proxy class, but never
is.

This results in a fatal error when the owning object is instantiated:

Fatal error: Call to undefined method My\Class::getPrototype() in ...

This commit fixes this behaviour by replacing the ``getPrototype`` call
with a simple constructor call and adds a (kind-of) simple functional test
for this behaviour.

Change-Id: I52a968e9f0e694b8097c1a84890e80a75caefd45
Releases: master, 3.0, 2.3, 2.2
Fixes: FLOW-175

  • added
  • modified
  • copied
  • renamed
  • deleted