diff --git a/src/Generator/MarkdownGenerator.php b/src/Generator/MarkdownGenerator.php index b329433..c73b8da 100644 --- a/src/Generator/MarkdownGenerator.php +++ b/src/Generator/MarkdownGenerator.php @@ -127,7 +127,7 @@ private function getPublicProperties(array $properties): string private function getPublicPropertyLines(array $properties): array { return array_map(function (Property $property) { - return "- \${$property->getName()} : {$property->getType()} {$property->getDescription()}"; + return "- `\${$property->getName()}` : {$property->getType()} {$property->getDescription()}"; }, $properties); } diff --git a/tests/Generator/MarkdownGeneratorTest.php b/tests/Generator/MarkdownGeneratorTest.php index 0d79c27..b79647c 100644 --- a/tests/Generator/MarkdownGeneratorTest.php +++ b/tests/Generator/MarkdownGeneratorTest.php @@ -72,7 +72,7 @@ public function fromSniff_WithCompleteData_WriteAllDetails() ); self::assertEquals( - <<