Skip to content

Commit

Permalink
fix property descriptions in ReflectionProviderGoldenTest
Browse files Browse the repository at this point in the history
  • Loading branch information
schlndh authored and ondrejmirtes committed May 31, 2024
1 parent 012a77c commit 29ce55c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
use function mkdir;
use function sort;
use function strpos;
use function substr;
use function trim;
use const PHP_INT_MAX;
use const PHP_VERSION_ID;
Expand Down Expand Up @@ -410,6 +411,8 @@ private static function generateVariantsDescription(string $name, array $variant
private static function generateClassPropertyDescription(string $propertyName): string
{
[$className, $propertyName] = explode('::', $propertyName);
// remove $
$propertyName = substr($propertyName, 1);

$reflectionProvider = self::getContainer()->getByType(ReflectionProvider::class);

Expand Down

0 comments on commit 29ce55c

Please sign in to comment.