fix: Symfony 7 compatibility fixes (IsGranted, empty path, command names)#31
Open
JeanGaelUmanIt wants to merge 2 commits into
Open
fix: Symfony 7 compatibility fixes (IsGranted, empty path, command names)#31JeanGaelUmanIt wants to merge 2 commits into
JeanGaelUmanIt wants to merge 2 commits into
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MenuAdminController: replace the removedSensioFrameworkExtraBundleIsGrantedattribute withSymfony\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-readprotected static $defaultNamewith#[AsCommand(name: ...)]— Symfony Console 7.4'sCommand::__construct()no longer reads the static property, so these commands ended up with an empty name.