Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Psalm to level 2 #1528

Merged

Conversation

jordisala1991
Copy link
Member

@jordisala1991 jordisala1991 commented Aug 8, 2022

Subject

I am targeting this branch, because this can only be applied to 4.x.

Changelog

### Changed
- `BlockAdmin` and its childs now inject their required dependencies through `__construct` instead of set methods.

@jordisala1991 jordisala1991 force-pushed the hotfix/increase-psalm-2 branch from 6ea9159 to dc4c3e2 Compare August 8, 2022 06:57
@jordisala1991 jordisala1991 marked this pull request as ready for review August 8, 2022 06:57
src/Admin/PageAdmin.php Outdated Show resolved Hide resolved
src/Admin/PageAdmin.php Outdated Show resolved Hide resolved
src/Model/SnapshotChildrenCollection.php Show resolved Hide resolved
@@ -91,6 +96,9 @@ protected function configureRoutes($routes): void
$routes->import($this->getProjectDir().'/config/routes.yaml');
}

/**
* @psalm-suppress DeprecatedClass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment about it ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't add it on other bundles. This method is rather simple, it will be removed once SonataBlock bundle is version 5 only.

@jordisala1991 jordisala1991 force-pushed the hotfix/increase-psalm-2 branch from dc4c3e2 to f953e82 Compare August 8, 2022 07:55
@VincentLanglet VincentLanglet merged commit a0275d3 into sonata-project:4.x Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants