Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 4, 2024
1 parent aa77741 commit c409c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exporter.php
Expand Up @@ -164,7 +164,7 @@ public function toArray(mixed $value): array
// private $propertyName => "\0ClassName\0propertyName"
// protected $propertyName => "\0*\0propertyName"
// public $propertyName => "propertyName"
if (preg_match('/^\0.+\0(.+)$/', (string) $key, $matches)) {
if (preg_match('/\0.+\0(.+)/', (string) $key, $matches)) {
$key = $matches[1];
}

Expand Down

0 comments on commit c409c34

Please sign in to comment.