Skip to content

Commit

Permalink
QC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pkly committed Mar 5, 2024
1 parent 7bdf2f5 commit 5709672
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Service/Nelmio/DtoOADescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function describeDTO(
$name = explode('.', $key)[0];

$operation->parameters[] = new Parameter([
'name' => $name.($type === 'query' && $model->isCollection() ? '[]' : ''), // if we're in the query bag automatically add [] to param name
'name' => $name.('query' === $type && $model->isCollection() ? '[]' : ''), // if we're in the query bag automatically add [] to param name
'in' => self::OA_BAG_MAP[$type] ?? $type,
'schema' => $schema,
'description' => $model->getDescription() ?? $this->getUndefined(),
Expand Down
1 change: 1 addition & 0 deletions src/Service/Type/Coercer/StringCoercer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function coerce(
mixed $value,
bool $validatePropertyConstraints = false
): CoerceResult {
/** @phpstan-ignore-next-line */
return $this->buildResult(
$this->validator,
$propertyPath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use DualMedia\DtoRequestBundle\Tests\PHPUnit\KernelTestCase;
use DualMedia\DtoRequestBundle\Tests\Traits\Unit\ConstraintValidationTrait;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Validator\ConstraintViolationInterface;

/**
* @group new-validation
Expand Down

0 comments on commit 5709672

Please sign in to comment.