Skip to content

Commit

Permalink
Use default value for json_decode() in NativeEntryFactory (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd authored Oct 6, 2023
1 parent 56e5499 commit fc6ef56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/etl/src/Flow/ETL/Row/Factory/NativeEntryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
*/
final class NativeEntryFactory implements EntryFactory
{
private const JSON_DEPTH = 512;

public function __construct(private readonly ?Schema $schema = null)
{
}
Expand Down Expand Up @@ -303,7 +301,7 @@ private function isJson(string $string) : bool
}

try {
return \is_array(\json_decode($string, true, self::JSON_DEPTH, JSON_THROW_ON_ERROR));
return \is_array(\json_decode($string, true, flags: \JSON_THROW_ON_ERROR));
} catch (\Exception) {
return false;
}
Expand Down

0 comments on commit fc6ef56

Please sign in to comment.