Skip to content

Commit c1639e4

Browse files
panki3aNyholm
authored andcommittedAug 8, 2017
Update CacheDataCollector.php (#84)
* Update CacheDataCollector.php change private method getCasters to protected * Renamed getCasters to getCloneCasters
1 parent a5150c4 commit c1639e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/DataCollector/CacheDataCollector.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function cloneData($var)
8484
if (null === $this->cloner) {
8585
$this->cloner = new VarCloner();
8686
$this->cloner->setMaxItems(-1);
87-
$this->cloner->addCasters($this->getCasters());
87+
$this->cloner->addCasters($this->getCloneCasters());
8888
}
8989

9090
return $this->cloner->cloneVar($var);
@@ -215,7 +215,7 @@ private function calculateTotalStatistics()
215215
/**
216216
* @return callable[] The casters to add to the cloner
217217
*/
218-
private function getCasters()
218+
private function getCloneCasters()
219219
{
220220
return [
221221
'*' => function ($v, array $a, Stub $s, $isNested) {

0 commit comments

Comments
 (0)