Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 29ce55c

Browse files
schlndhondrejmirtes
authored andcommitted
fix property descriptions in ReflectionProviderGoldenTest
1 parent 012a77c commit 29ce55c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
use function mkdir;
3232
use function sort;
3333
use function strpos;
34+
use function substr;
3435
use function trim;
3536
use const PHP_INT_MAX;
3637
use const PHP_VERSION_ID;
@@ -410,6 +411,8 @@ private static function generateVariantsDescription(string $name, array $variant
410411
private static function generateClassPropertyDescription(string $propertyName): string
411412
{
412413
[$className, $propertyName] = explode('::', $propertyName);
414+
// remove $
415+
$propertyName = substr($propertyName, 1);
413416

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /