Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and actions-user committed Dec 27, 2021
1 parent d1dbc5e commit 95c80bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/JobRecorder/JobRecorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Illuminate\Queue\CallQueuedClosure;
use Illuminate\Queue\Events\JobExceptionOccurred;
use Illuminate\Queue\Jobs\RedisJob;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use ReflectionClass;
use ReflectionProperty;
Expand Down Expand Up @@ -117,11 +116,11 @@ protected function resolveCommandProperties(object $command, int $maxChainDepth)
return in_array($property->name, $propertiesToIgnore);
})
->mapWithKeys(function (ReflectionProperty $property) use ($command) {
try{
try {
$property->setAccessible(true);

return [$property->name => $property->getValue($command)];
}catch(Error $error) {
} catch (Error $error) {
return [$property->name => 'uninitialized'];
}
});
Expand Down

0 comments on commit 95c80bd

Please sign in to comment.