Skip to content

Commit

Permalink
Add missing typehints to closure
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Feb 2, 2024
1 parent 840106e commit dd914b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessageBus/Logging/PrivateClassPropertiesExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function extract(object $object): array
foreach ($classes as $class) {
// magic :)
$extract = \Closure::bind(
fn ($object) => get_object_vars($object),
fn (object $object): array => get_object_vars($object),
null,
$class,
);
Expand Down

0 comments on commit dd914b2

Please sign in to comment.