Skip to content

Commit

Permalink
fix: conversion of stdClass to string error
Browse files Browse the repository at this point in the history
  • Loading branch information
kodegrenade committed Oct 4, 2023
1 parent a9864cb commit 980662d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/FakerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public function handle(): int
{
try {
$generate = NaijaFaker::person();
$this->info($generate);
$output = print_r($generate, true);
$this->info($output);
} catch (\Exception $e) {
$this->error("Error:: {$e->getMessage()}");
}
Expand Down

0 comments on commit 980662d

Please sign in to comment.