Skip to content

Commit

Permalink
Fix creating an undocumented dynamic property
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TysonAndre committed Nov 27, 2021
1 parent b5f37db commit e3ad6e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class Dispatcher
* @var \phpDocumentor\Reflection\Types\ContextFactory
*/
private $contextFactory;
/**
* @var JsonMapper
*/
private $mapper;

/**
* @param object $target The target object that should receive the method calls
Expand Down

0 comments on commit e3ad6e3

Please sign in to comment.