Skip to content

Commit 5638540

Browse files
Update all dependencies to latest supported versions
Note that we don't update Symfony to 7.x yet since there is no LTS yet.
1 parent a4b765e commit 5638540

29 files changed

+1171
-1159
lines changed

webapp/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"datatables.net/datatables.net": "dev-master",
6161
"datatables.net/datatables.net-bs5": "dev-master",
6262
"doctrine/doctrine-bundle": "^2.8",
63-
"doctrine/doctrine-fixtures-bundle": "^3.4",
63+
"doctrine/doctrine-fixtures-bundle": "^4.0",
6464
"doctrine/doctrine-migrations-bundle": "^3.2",
6565
"doctrine/orm": "^2.14",
6666
"eligrey/filesaver": "2.*",
@@ -72,11 +72,11 @@
7272
"knplabs/knp-paginator-bundle": "^6.6",
7373
"league/commonmark": "^2.3",
7474
"mbostock/d3": "^3.5",
75-
"nelmio/api-doc-bundle": "^4.11",
75+
"nelmio/api-doc-bundle": "^5.0",
7676
"nelmio/cors-bundle": "^2.4",
7777
"novus/nvd3": "^1.8",
7878
"phpdocumentor/reflection-docblock": "^5.3",
79-
"phpstan/phpdoc-parser": "^1.25",
79+
"phpstan/phpdoc-parser": "^2.0",
8080
"promphp/prometheus_client_php": "^2.6",
8181
"ramsey/uuid": "^4.2",
8282
"riverline/multipart-parser": "^2.1",
@@ -116,8 +116,8 @@
116116
"require-dev": {
117117
"ext-dom": "*",
118118
"dama/doctrine-test-bundle": "^8.0",
119-
"phpstan/phpstan": "^1.10",
120-
"phpstan/phpstan-doctrine": "^1.3",
119+
"phpstan/phpstan": "^2.0",
120+
"phpstan/phpstan-doctrine": "^2.0",
121121
"phpunit/phpunit": "^9.6",
122122
"sebastian/diff": "*",
123123
"squizlabs/php_codesniffer": "*",

webapp/composer.lock

Lines changed: 1079 additions & 1070 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webapp/config/packages/doctrine.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ doctrine:
3030
auto_mapping: true
3131
controller_resolver:
3232
auto_mapping: false
33+
enable_lazy_ghost_objects: true
3334
mappings:
3435
App:
3536
type: attribute

webapp/src/Controller/API/AccessController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\NonUniqueResultException;
88
use Doctrine\ORM\NoResultException;
99
use FOS\RestBundle\Controller\Annotations as Rest;
10-
use Nelmio\ApiDocBundle\Annotation\Model;
10+
use Nelmio\ApiDocBundle\Attribute\Model;
1111
use OpenApi\Attributes as OA;
1212
use Symfony\Component\HttpFoundation\Request;
1313
use Symfony\Component\Security\Http\Attribute\IsGranted;

webapp/src/Controller/API/AccountController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Doctrine\ORM\NonUniqueResultException;
77
use Doctrine\ORM\QueryBuilder;
88
use FOS\RestBundle\Controller\Annotations as Rest;
9-
use Nelmio\ApiDocBundle\Annotation\Model;
9+
use Nelmio\ApiDocBundle\Attribute\Model;
1010
use OpenApi\Attributes as OA;
1111
use Symfony\Component\ExpressionLanguage\Expression;
1212
use Symfony\Component\HttpFoundation\Request;

webapp/src/Controller/API/AwardsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Doctrine\ORM\EntityManagerInterface;
1414
use Exception;
1515
use FOS\RestBundle\Controller\Annotations as Rest;
16-
use Nelmio\ApiDocBundle\Annotation\Model;
16+
use Nelmio\ApiDocBundle\Attribute\Model;
1717
use OpenApi\Attributes as OA;
1818
use Symfony\Component\HttpFoundation\Request;
1919
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;

webapp/src/Controller/API/BalloonController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use App\Service\BalloonService;
99
use Doctrine\ORM\NonUniqueResultException;
1010
use FOS\RestBundle\Controller\Annotations as Rest;
11-
use Nelmio\ApiDocBundle\Annotation\Model;
11+
use Nelmio\ApiDocBundle\Attribute\Model;
1212
use OpenApi\Attributes as OA;
1313
use Symfony\Component\ExpressionLanguage\Expression;
1414
use Symfony\Component\HttpFoundation\Request;

webapp/src/Controller/API/ClarificationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Doctrine\ORM\QueryBuilder;
1313
use Exception;
1414
use FOS\RestBundle\Controller\Annotations as Rest;
15-
use Nelmio\ApiDocBundle\Annotation\Model;
15+
use Nelmio\ApiDocBundle\Attribute\Model;
1616
use OpenApi\Attributes as OA;
1717
use Symfony\Component\ExpressionLanguage\Expression;
1818
use Symfony\Component\HttpFoundation\Request;

webapp/src/Controller/API/ContestController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use FOS\RestBundle\Controller\Annotations as Rest;
2525
use JMS\Serializer\Metadata\PropertyMetadata;
2626
use Metadata\MetadataFactoryInterface;
27-
use Nelmio\ApiDocBundle\Annotation\Model;
27+
use Nelmio\ApiDocBundle\Attribute\Model;
2828
use OpenApi\Attributes as OA;
2929
use Psr\Log\LoggerInterface;
3030
use Symfony\Component\DependencyInjection\Attribute\Autowire;
@@ -418,7 +418,7 @@ public function changeStartTimeAction(
418418
if (!$request->request->has('start_time') && !$request->request->has('scoreboard_thaw_time')) {
419419
throw new BadRequestHttpException('Missing "start_time" or "scoreboard_thaw_time" in request.');
420420
}
421-
if ($request->request->get('id') != $contest->getExternalid()) {
421+
if ($request->request->get('id') !== $contest->getExternalid()) {
422422
throw new BadRequestHttpException('Invalid "id" in request.');
423423
}
424424
if ($request->request->has('start_time') && $request->request->has('scoreboard_thaw_time')) {

webapp/src/Controller/API/GeneralInfoController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use FOS\RestBundle\Controller\Annotations as Rest;
2121
use InvalidArgumentException;
2222
use JMS\Serializer\SerializerInterface;
23-
use Nelmio\ApiDocBundle\Annotation\Model;
23+
use Nelmio\ApiDocBundle\Attribute\Model;
2424
use OpenApi\Attributes as OA;
2525
use Psr\Log\LoggerInterface;
2626
use Symfony\Component\HttpFoundation\JsonResponse;

0 commit comments

Comments
 (0)