Fix wrong variable name in LessThan and LessThanOrEqual asserts (#3971)

* Fix wrong variable name in LessThan and LessThanOrEqual asserts

* After run ./bin/php-symfony-petstore.sh
This commit is contained in:
Artem
2019-09-28 11:42:02 +02:00
committed by William Cheng
parent e901132ea9
commit 0bf9926066
2 changed files with 3 additions and 3 deletions

View File

@@ -224,7 +224,7 @@ class StoreController extends Controller
$asserts[] = new Assert\NotNull();
$asserts[] = new Assert\Type("int");
$asserts[] = new Assert\GreaterThanOrEqual(1);
$asserts[] = new Assert\LessThanOrEqual(1);
$asserts[] = new Assert\LessThanOrEqual(5);
$response = $this->validate($orderId, $asserts);
if ($response instanceof Response) {
return $response;