Skip to content

Commit

Permalink
Fix typo for $parent_instance param in `RecursiveDataStructureTrave…
Browse files Browse the repository at this point in the history
…rser` constructor (#422)

* Fix typo for `$parent_instance` param in `RecursiveDataStructureTraverser` constructor

* Apply suggestion and reformat

---------

Co-authored-by: Daniel Bachhuber <daniel.bachhuber@automattic.com>
  • Loading branch information
petitphp and danielbachhuber authored Sep 8, 2023
1 parent be63876 commit 103c335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WP_CLI/Entity/RecursiveDataStructureTraverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class RecursiveDataStructureTraverser {
/**
* RecursiveDataStructureTraverser constructor.
*
* @param mixed $data The data to read/manipulate by reference.
* @param string|int $key The key/property the data belongs to.
* @param static $parent
* @param mixed $data The data to read/manipulate by reference.
* @param string|int $key The key/property the data belongs to.
* @param static|null $parent_instance The parent instance of the traverser.
*/
public function __construct( &$data, $key = null, $parent_instance = null ) {
$this->data =& $data;
Expand Down

0 comments on commit 103c335

Please sign in to comment.