for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chubbyphp\Deserialization\Denormalizer;
use Chubbyphp\Deserialization\Accessor\AccessorInterface;
final class FieldDenormalizer implements FieldDenormalizerInterface
{
/**
* @var AccessorInterface
*/
private $accessor;
* @param AccessorInterface $accessor
* @param array $groups
$groups
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
public function __construct(AccessorInterface $accessor)
$this->accessor = $accessor;
}
* @param string $path
* @param object $object
* @param mixed $value
* @param DenormalizerInterface|null $denormalizer
* @param DenormalizerContextInterface|null $context
public function denormalizeField(
string $path,
$object,
$value,
DenormalizerInterface $denormalizer = null,
DenormalizerContextInterface $context = null
) {
$this->accessor->setValue($object, $value);
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.