« Previous | Next » 

Revision c042bae9

IDc042bae9a79b194831956b3001fe79ea8cbc2c1d
Parent dac5cca4
Child 722eeb14

Added by Bastian Waidelich over 7 years ago

[BUGFIX] Support serialization of classes with static properties

When trying to serialize a proxied class that contains static
properties an exception is thrown::

Runtime Notice: Accessing static property [...] as non static

The reason is that the ``DependencyInjection\\ProxyClassBuilder``
overrides the magic ``__sleep()`` method of the proxy class, accessing
all properties as ``$this->\$propertyName``.

This change fixes the issue by skipping static properties.

Change-Id: Ie873748c5bc981fd1e4faa2dd34eaf9b552e5507
Fixes: FLOW-282
Releases: master, 3.0, 2.3, 2.2, 2.1

  • added
  • modified
  • copied
  • renamed
  • deleted