bug #31477 [PropertyAccess] Add missing property to PropertyAccessor (vudaltsov)

This PR was squashed before being merged into the 4.2 branch (closes #31477).

Discussion
----------

[PropertyAccess] Add missing property to PropertyAccessor

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

b1d3736c40 [PropertyAccess] Add missing property to PropertyAccessor
This commit is contained in:
Nicolas Grekas 2019-05-12 13:08:38 +02:00
commit 1620baf1b5

View File

@ -62,6 +62,7 @@ class PropertyAccessor implements PropertyAccessorInterface
*/
private $cacheItemPool;
private $propertyPathCache = [];
private $readPropertyCache = [];
private $writePropertyCache = [];
private static $resultProto = [self::VALUE => null];
@ -795,7 +796,7 @@ class PropertyAccessor implements PropertyAccessorInterface
*
* @return AdapterInterface
*
* @throws RuntimeException When the Cache Component isn't available
* @throws \LogicException When the Cache Component isn't available
*/
public static function createCache($namespace, $defaultLifetime, $version, LoggerInterface $logger = null)
{