Skip to content

Commit e3ad6e3

Browse files
committed
Fix creating an undocumented dynamic property
https://wiki.php.net/rfc/deprecate_dynamic_properties causes this to emit an E_DEPRECATION notice. A private property was chosen because: - This was undocumented and I assume unintentional. - This will not conflict with any properties of the same name and different types (or readonly properties) in subclasses.
1 parent b5f37db commit e3ad6e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/Dispatcher.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class Dispatcher
3939
* @var \phpDocumentor\Reflection\Types\ContextFactory
4040
*/
4141
private $contextFactory;
42+
/**
43+
* @var JsonMapper
44+
*/
45+
private $mapper;
4246

4347
/**
4448
* @param object $target The target object that should receive the method calls

0 commit comments

Comments
 (0)