mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 04:19:43 +00:00
Update php cs fixer to latest version 3.88.2 with fixes
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/doctrine-fixtures-bundle": "^3.3",
|
"doctrine/doctrine-fixtures-bundle": "^3.3",
|
||||||
"fakerphp/faker": "^1.13",
|
"fakerphp/faker": "^1.13",
|
||||||
"friendsofphp/php-cs-fixer": "3.65.0",
|
"friendsofphp/php-cs-fixer": "3.88.2",
|
||||||
"jangregor/phpstan-prophecy": "^1.0",
|
"jangregor/phpstan-prophecy": "^1.0",
|
||||||
"nelmio/alice": "^3.8",
|
"nelmio/alice": "^3.8",
|
||||||
"nikic/php-parser": "^4.15",
|
"nikic/php-parser": "^4.15",
|
||||||
|
@@ -54,9 +54,7 @@ class LoadUsers extends Fixture implements OrderedFixtureInterface
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
public function __construct(private readonly UserPasswordHasherInterface $passwordHasher)
|
public function __construct(private readonly UserPasswordHasherInterface $passwordHasher) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getOrder(): int
|
public function getOrder(): int
|
||||||
{
|
{
|
||||||
|
@@ -22,9 +22,7 @@ use Symfony\Bundle\SecurityBundle\Security;
|
|||||||
|
|
||||||
class TrackCreateUpdateSubscriber implements EventSubscriber
|
class TrackCreateUpdateSubscriber implements EventSubscriber
|
||||||
{
|
{
|
||||||
public function __construct(private readonly Security $security)
|
public function __construct(private readonly Security $security) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getSubscribedEvents(): array
|
public function getSubscribedEvents(): array
|
||||||
{
|
{
|
||||||
|
@@ -18,7 +18,6 @@ use Symfony\Component\Form\Extension\Core\Type\FormType;
|
|||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
use function count;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command to get the report with curl:
|
* Command to get the report with curl:
|
||||||
|
@@ -44,7 +44,7 @@ final readonly class PersonEditController
|
|||||||
* @ParamConverter("person", options={"id": "person_id"})
|
* @ParamConverter("person", options={"id": "person_id"})
|
||||||
*/
|
*/
|
||||||
#[Route(path: '/{_locale}/person/{person_id}/general/edit', name: 'chill_person_general_edit')]
|
#[Route(path: '/{_locale}/person/{person_id}/general/edit', name: 'chill_person_general_edit')]
|
||||||
public function editAction(Person $person, Request $request, Session $session): \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response
|
public function editAction(Person $person, Request $request, Session $session): RedirectResponse|Response
|
||||||
{
|
{
|
||||||
if (!$this->security->isGranted(PersonVoter::UPDATE, $person)) {
|
if (!$this->security->isGranted(PersonVoter::UPDATE, $person)) {
|
||||||
throw new AccessDeniedHttpException('You are not allowed to edit this person.');
|
throw new AccessDeniedHttpException('You are not allowed to edit this person.');
|
||||||
|
Reference in New Issue
Block a user