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

Skip to content

Commit 5dbd800

Browse files
committed
[VarDumper] Add Caster::PATTERN_PRIVATE to help builing key
1 parent fdbd4c1 commit 5dbd800

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)