Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e54cb6b

Browse files
committed
Updated docs
1 parent f57d813 commit e54cb6b

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ private function filterDocBlockParams(DocBlock $docBlock, string $allowedParam):
225225
}
226226

227227
/**
228-
* Gets a property DocBlock.
229-
*
230228
* @return array{DocBlock|null, int|null, string|null}
231229
*/
232230
private function findDocBlock(string $class, string $property): array

src/Symfony/Component/PropertyInfo/PropertyDocBlockExtractorInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ interface PropertyDocBlockExtractorInterface
2626
/**
2727
* Gets the first available doc block for a property. It finds the doc block
2828
* by the following priority:
29-
* - constructor promoted argument
30-
* - the class property
31-
* - a mutator method for that property
29+
* - constructor promoted argument
30+
* - the class property
31+
* - a mutator method for that property
3232
*
3333
* If no doc block is found, it will return null.
3434
*/

src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ protected function setUp(): void
3939
*/
4040
public function testExtract($property, ?array $type, $shortDescription, $longDescription)
4141
{
42-
$this->assertEquals($type, $this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property));
43-
$this->assertSame($shortDescription, $this->extractor->getShortDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property));
44-
$this->assertSame($longDescription, $this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property));
42+
$this->assertEquals($type, $this->extractor->getTypes(Dummy::class, $property));
43+
$this->assertSame($shortDescription, $this->extractor->getShortDescription(Dummy::class, $property));
44+
$this->assertSame($longDescription, $this->extractor->getLongDescription(Dummy::class, $property));
4545
}
4646

4747
public function testGetDocBlock()
4848
{
49-
$docBlock = $this->extractor->getDocBlock('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', 'g');
49+
$docBlock = $this->extractor->getDocBlock(Dummy::class, 'g');
5050
$this->assertInstanceOf(DocBlock::class, $docBlock);
5151
$this->assertSame('Nullable array.', $docBlock->getSummary());
5252

53-
$docBlock = $this->extractor->getDocBlock('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', 'noDocBlock;');
53+
$docBlock = $this->extractor->getDocBlock(Dummy::class, 'noDocBlock;');
5454
$this->assertNull($docBlock);
5555

56-
$docBlock = $this->extractor->getDocBlock('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', 'notAvailable');
56+
$docBlock = $this->extractor->getDocBlock(Dummy::class, 'notAvailable');
5757
$this->assertNull($docBlock);
5858
}
5959

@@ -89,7 +89,7 @@ public function testExtractTypesWithNoPrefixes($property, array $type = null)
8989
{
9090
$noPrefixExtractor = new PhpDocExtractor(null, [], [], []);
9191

92-
$this->assertEquals($type, $noPrefixExtractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property));
92+
$this->assertEquals($type, $noPrefixExtractor->getTypes(Dummy::class, $property));
9393
}
9494

9595
public static function typesProvider()
@@ -211,7 +211,7 @@ public function testExtractTypesWithCustomPrefixes($property, array $type = null
211211
{
212212
$customExtractor = new PhpDocExtractor(null, ['add', 'remove'], ['is', 'can']);
213213

214-
$this->assertEquals($type, $customExtractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property));
214+
$this->assertEquals($type, $customExtractor->getTypes(Dummy::class, $property));
215215
}
216216

217217
public static function typesWithCustomPrefixesProvider()

0 commit comments

Comments
 (0)