8000 minor #16147 [VarDumper] consistent signature of getDump() in class +… · symfony/symfony@45a5b00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 45a5b00

Browse files
committed
minor #16147 [VarDumper] consistent signature of getDump() in class + trait (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [VarDumper] consistent signature of getDump() in class + trait | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16126 | License | MIT | Doc PR | Commits ------- 48a9e83 consistent signature of getDump() in class + trait
2 parents 5aa1233 + 48a9e83 commit 45a5b00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/VarDumper/Test/VarDumperTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function assertDumpMatchesFormat($dump, $data, $message = '')
2929
$this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data), $message);
3030
}
3131

32-
private function getDump($data)
32+
protected function getDump($data)
3333
{
3434
$h = fopen('php://memory', 'r+b');
3535
$cloner = new VarCloner();

src/Symfony/Component/VarDumper/Test/VarDumperTestTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function assertDumpMatchesFormat($dump, $data, $message = '')
2929
$this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data), $message);
3030
}
3131

32-
public function getDump($data)
32+
protected function getDump($data)
3333
{
3434
$h = fopen('php://memory', 'r+b');
3535
$cloner = new VarCloner();

0 commit comments

Comments
 (0)
0