Skip to content

Add phpstan and fix some related issues #121

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

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

Hikariii
Copy link
Member

@Hikariii Hikariii commented Oct 18, 2024

Fix compatibility issues with older composer versions
Run phstan in ci

Fix compatibility issues with older composer versions
Run phpstan in ci
if (class_exists('Doctrine\DBAL\Platforms\Exception\NotSupported')) {
return NotSupported::new($method);
return \Doctrine\DBAL\Platforms\Exception\NotSupported::new($method);

Choose a reason for hiding this comment

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

Why should this be inline?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because it is a backward compatibility class.
The complexity of supporting dbal3 and dbal4 requires this class to use fully qualified class names when dbal3 is used, because the class does not exist in dbal 3.

@Hikariii Hikariii merged commit 20e0cfb into ScientaNL:master Oct 21, 2024
7 checks passed
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.

2 participants