Skip to content

Commit a3ee7db

Browse files
committed
[VarDumper] Add Caster::PATTERN_PRIVATE to help builing key
1 parent efc8f5d commit a3ee7db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)