Skip to content

Commit f90ce82

Browse files
authored
Update RefResolver.php
Update P0 Critical Finding
1 parent fa77d19 commit f90ce82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RefResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class RefResolver
1313
public $url;
1414
/** @var null|RefResolver */
1515
private $rootResolver;
16-
private int $max_deep_nesting = 200; //Change this via options submitted to ::import if needed
16+
private int $maxNestLevel = 200; //Change this via options submitted to ::import if needed
1717

1818
/**
1919
* @param mixed $resolutionScope
@@ -103,10 +103,10 @@ public function setupResolutionScope($id, $data)
103103
* RefResolver constructor.
104104
* @param JsonSchema $rootData
105105
*/
106-
public function __construct($rootData = null, int $max_nest_level = 200)
106+
public function __construct($rootData = null, int $maxNestLevel = 200)
107107
{
108108
$this->rootData = $rootData;
109-
$this->max_deep_nesting = $max_nest_level;
109+
$this->maxNestLevel = $max_nest_level;
110110
}
111111

112112
public function setRootData($rootData)

0 commit comments

Comments
 (0)