Skip to content

Remove old PHPStan configuration, resolve latest errors#3657

Merged
bobvandevijver merged 1 commit into6.0from
remove-old-phpstan-config
Dec 18, 2025
Merged

Remove old PHPStan configuration, resolve latest errors#3657
bobvandevijver merged 1 commit into6.0from
remove-old-phpstan-config

Conversation

@bobvandevijver
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 18, 2025 20:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes outdated PHPStan configuration and resolves static analysis errors. The changes streamline the PHPStan setup by removing obsolete ignore rules and directory scans, while fixing the underlying issues that were being suppressed.

  • Removed PHPStan configuration workarounds that are no longer needed
  • Fixed error handling in ContentFixtures to properly catch exceptions instead of using an empty finally block
  • Added explicit type hint for upload result to resolve PHPStan type inference issue

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/DataFixtures/ContentFixtures.php Replaced empty finally block with proper exception handling using catch block
src/Controller/Backend/Async/UploadController.php Added type hint annotation and import for File class to resolve PHPStan type issues
phpstan.dist.neon Removed obsolete configuration including scanDirectories, ignoreErrors, and commented-out services

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bobvandevijver bobvandevijver force-pushed the remove-old-phpstan-config branch from af46a67 to 08d2cbe Compare December 18, 2025 20:30
@bobvandevijver bobvandevijver force-pushed the remove-old-phpstan-config branch from 08d2cbe to bcb4001 Compare December 18, 2025 20:41
@bobvandevijver bobvandevijver merged commit 3649e40 into 6.0 Dec 18, 2025
35 of 36 checks passed
@bobvandevijver bobvandevijver deleted the remove-old-phpstan-config branch December 18, 2025 21:53
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