8000 feature #49852 [VarDumper] Add Caster::PATTERN_PRIVATE to help builin… · symfony/symfony@36bb70a · GitHub
[go: up one dir, main page]

Skip to content

Commit 36bb70a

Browse files
committed
feature #49852 [VarDumper] Add Caster::PATTERN_PRIVATE to help builing key (lyrixx)
This PR was merged into the 6.3 branch. Discussion ---------- [VarDumper] Add Caster::PATTERN_PRIVATE to help builing key | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | | License | MIT | Doc PR | not needed I guess Commits ------- 5dbd800 [VarDumper] Add Caster::PATTERN_PRIVATE to help builing key
2 parents 347b51a + 5dbd800 commit 36bb70a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/VarDumper/Caster/Caster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class Caster
3636
public const PREFIX_VIRTUAL = "\0~\0";
3737
public const PREFIX_DYNAMIC = "\0+\0";
3838
public const PREFIX_PROTECTED = "\0*\0";
39+
// usage: sprintf(Caster::PATTERN_PRIVATE, $class, $property)
40+
public const PATTERN_PRIVATE = "\0%s\0%s";
3941

4042
/**
4143
* Casts objects to arrays and adds the dynamic property prefix.

0 commit comments

Comments
 (0)
0