Closed nilportugues closed 8 years ago
in src/Server/Data/DataAssertions.php, line 131
This errorBag local variable is declared but never used. You should remove it.
errorBag
$hasErrors = false; foreach ($inputAttributes as $property) { if (false === in_array($property, $properties)) { $hasErrors = true; $errorBag[] = new InvalidAttributeError($property, $data[JsonApiTransformer::TYPE_KEY]); } } if ($hasErrors) { throw new DataException();
Posted from SensioLabsInsight
https://github.com/nilportugues/php-json-api/commit/7155818c5fe26dc50c33b68e50bd3c701892ee2a
in src/Server/Data/DataAssertions.php, line 131
Posted from SensioLabsInsight