From 410feab0c2acf74e23da976a46464598c05394e0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 30 May 2024 17:01:21 +0200 Subject: [PATCH] Fixes --- composer.json | 62 +++++++++++++++---------------- src/Controller/BlogController.php | 2 +- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/composer.json b/composer.json index 85a159d17a..bff7f03c6b 100644 --- a/composer.json +++ b/composer.json @@ -6,44 +6,44 @@ "minimum-stability": "dev", "prefer-stable": true, "replace": { - "symfony/polyfill-php72": "*", - "symfony/polyfill-php73": "*", - "symfony/polyfill-php74": "*", - "symfony/polyfill-php80": "*", - "symfony/polyfill-php81": "*" + "symfony/polyfill-php72": "7.1.*", + "symfony/polyfill-php73": "7.1.*", + "symfony/polyfill-php74": "7.1.*", + "symfony/polyfill-php80": "7.1.*", + "symfony/polyfill-php81": "7.1.*" }, "require": { "php": ">=8.2", - "ext-pdo_sqlite": "*", + "ext-pdo_sqlite": "7.1.*", "doctrine/dbal": "^4.0", "doctrine/doctrine-bundle": "^2.11", "doctrine/doctrine-migrations-bundle": "^3.3", "doctrine/orm": "^3.0", "league/commonmark": "^2.1", "symfony/apache-pack": "^1.0", - "symfony/asset": "*", - "symfony/asset-mapper": "*", - "symfony/console": "*", - "symfony/dotenv": "*", - "symfony/expression-language": "*", + "symfony/asset": "7.1.*", + "symfony/asset-mapper": "7.1.*", + "symfony/console": "7.1.*", + "symfony/dotenv": "7.1.*", + "symfony/expression-language": "7.1.*", "symfony/flex": "^2", - "symfony/form": "*", - "symfony/framework-bundle": "*", - "symfony/html-sanitizer": "*", - "symfony/http-client": "*", - "symfony/intl": "*", - "symfony/mailer": "*", + "symfony/form": "7.1.*", + "symfony/framework-bundle": "7.1.*", + "symfony/html-sanitizer": "7.1.*", + "symfony/http-client": "7.1.*", + "symfony/intl": "7.1.*", + "symfony/mailer": "7.1.*", "symfony/monolog-bundle": "^3.7", "symfony/polyfill-intl-messageformatter": "^1.12", - "symfony/runtime": "*", - "symfony/security-bundle": "*", + "symfony/runtime": "7.1.*", + "symfony/security-bundle": "7.1.*", "symfony/stimulus-bundle": "^2.12", - "symfony/string": "*", - "symfony/translation": "*", - "symfony/twig-bundle": "*", + "symfony/string": "7.1.*", + "symfony/translation": "7.1.*", + "symfony/twig-bundle": "7.1.*", "symfony/ux-live-component": "^2.6", - "symfony/validator": "*", - "symfony/yaml": "*", + "symfony/validator": "7.1.*", + "symfony/yaml": "7.1.*", "symfonycasts/sass-bundle": "^0.3", "twig/extra-bundle": "^3.3", "twig/intl-extra": "^3.3", @@ -56,13 +56,13 @@ "phpstan/phpstan": "^1.2", "phpstan/phpstan-doctrine": "^1.3", "phpstan/phpstan-symfony": "^1.2", - "symfony/browser-kit": "*", - "symfony/css-selector": "*", - "symfony/debug-bundle": "*", + "symfony/browser-kit": "7.1.*", + "symfony/css-selector": "7.1.*", + "symfony/debug-bundle": "7.1.*", "symfony/maker-bundle": "^1.36", - "symfony/phpunit-bridge": "*", - "symfony/stopwatch": "*", - "symfony/web-profiler-bundle": "*", + "symfony/phpunit-bridge": "7.1.*", + "symfony/stopwatch": "7.1.*", + "symfony/web-profiler-bundle": "7.1.*", "twbs/bootstrap": "^4.5.3" }, "config": { @@ -75,7 +75,7 @@ "php": "8.2.0" }, "preferred-install": { - "*": "dist" + "7.1.*": "dist" }, "sort-packages": true }, diff --git a/src/Controller/BlogController.php b/src/Controller/BlogController.php index 3a300e1775..6263a5f8aa 100644 --- a/src/Controller/BlogController.php +++ b/src/Controller/BlogController.php @@ -75,7 +75,7 @@ public function index(Request $request, int $page, string $_format, PostReposito * parameter in the database query that fetches the entity of the $post argument. * This is mostly useful when the route has multiple parameters and the controller * also has multiple arguments. - * See https://symfony.com/doc/current/doctrine.html#automatically-fetching-objects-entityvalueresolver + * See https://symfony.com/doc/current/doctrine.html#automatically-fetching-objects-entityvalueresolver. */ #[Route('/posts/{slug:post}', name: 'blog_post', requirements: ['slug' => Requirement::ASCII_SLUG], methods: ['GET'])] public function postShow(Post $post): Response