Skip to content

fix: Symfony 7 compatibility fixes (IsGranted, empty path, command names)#31

Open
JeanGaelUmanIt wants to merge 2 commits into
masterfrom
fix/updateForSF7
Open

fix: Symfony 7 compatibility fixes (IsGranted, empty path, command names)#31
JeanGaelUmanIt wants to merge 2 commits into
masterfrom
fix/updateForSF7

Conversation

@JeanGaelUmanIt

Copy link
Copy Markdown
Contributor
  • MenuAdminController: replace the removed SensioFrameworkExtraBundle IsGranted attribute with Symfony\Component\Security\Http\Attribute\IsGranted.
  • NodeRepository::getByPath(): guard against an empty path before checking $path[0], avoiding an error on empty string.
  • InitializeCommand/RefreshNodesCommand: replace the no-longer-read protected static $defaultName with #[AsCommand(name: ...)] — Symfony Console 7.4's Command::__construct() no longer reads the static property, so these commands ended up with an empty name.

AbstractMenu::update() (PrePersist/PreUpdate) set updatedAt with
DateTimeImmutable, but the column is mapped as Doctrine's `datetime` type,
which strictly requires \DateTime in doctrine/dbal 4.x (dbal 2.x used to
accept any \DateTimeInterface).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant