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

bump to phpstan level 4 #1859

Merged
merged 1 commit into from
Jan 27, 2025
Merged

bump to phpstan level 4 #1859

merged 1 commit into from
Jan 27, 2025

Conversation

dmaicher
Copy link
Contributor

No description provided.


$table = $definition->getArguments()[1]['db_table'] ?? 'sessions';

if (! method_exists($definition->getClass(), 'configureSchema')) {
Copy link
Contributor Author

@dmaicher dmaicher Jan 26, 2025

Choose a reason for hiding this comment

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

since method_exists($definition->getClass(), 'configureSchema') is alyways true now this class is no-op, right? 👀

Copy link
Member

Choose a reason for hiding this comment

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

Indeed. Let's remove class too, since you already removed compiler pass definition anyways

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah although its a BC break I would also tend to remove it as its completely useless now

@dmaicher dmaicher marked this pull request as ready for review January 26, 2025 16:38
@dmaicher dmaicher added this to the 2.14.0 milestone Jan 26, 2025
src/Command/CreateDatabaseDoctrineCommand.php Outdated Show resolved Hide resolved
src/ConnectionFactory.php Outdated Show resolved Hide resolved
src/ConnectionFactory.php Outdated Show resolved Hide resolved

$table = $definition->getArguments()[1]['db_table'] ?? 'sessions';

if (! method_exists($definition->getClass(), 'configureSchema')) {
Copy link
Member

Choose a reason for hiding this comment

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

Indeed. Let's remove class too, since you already removed compiler pass definition anyways

phpstan.neon.dist Outdated Show resolved Hide resolved
Copy link
Member

@ostrolucky ostrolucky left a comment

Choose a reason for hiding this comment

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

Thanks for the help with this grunt work!

@ostrolucky ostrolucky merged commit 94186da into doctrine:2.14.x Jan 27, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants