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

Fix phpstan tests #2886

Merged
merged 4 commits into from Jan 26, 2024
Merged

Fix phpstan tests #2886

merged 4 commits into from Jan 26, 2024

Conversation

Levdbas
Copy link
Member

@Levdbas Levdbas commented Jan 20, 2024

Issue

Lately some tests fail. This PR focusses on getting the phpstan tests running again while also tackeling two other phpstan errors I got locally.

Solution

Include a file to discover symbols, changing a property name and ignore an ACF function error.

Impact

PHPSTAN tests that run again.

Usage Changes

no

Considerations

I got 20 more errors when running phpstan, mostly the unsafe use of new static(), we might want to ignore that as well? Other errors are also some other missing symbols. Let me know if we want to look into those as well.

Copy link
Member

@nlemoine nlemoine left a comment

Choose a reason for hiding this comment

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

Thank you @Levdbas, this looks good to me 👍

@nlemoine nlemoine merged commit d682c7b into 2.x Jan 26, 2024
@nlemoine nlemoine deleted the fix-phpstan-tests branch January 26, 2024 09:20
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.

None yet

2 participants