Closed Xwyk closed 3 years ago
The use of function file_get_contents() is discouraged
$products = $serializer->deserialize(file_get_contents($this->jsonFile),'array<App\Entity\Product>', 'json');
Codacy detected an issue:
Message:
The use of function file_get_contents() is discouraged
Occurred on:
$products = $serializer->deserialize(file_get_contents($this->jsonFile),'array<App\Entity\Product>', 'json');
Currently on: