Introduce shared PHPStan base configuration#2
Merged
Conversation
2 tasks
- Introduced a `base.neon` file for PHPStan configuration with strict checks enabled. - Updated `composer.json` to include `phpstan/phpstan-strict-rules` as a development dependency. - Enhanced static analysis by enabling advanced diagnostics such as missing type hints, implicit `mixed` handling, and reporting on potentially unsafe constructs. - Configured custom temporary directory for PHPStan outputs and adjusted ignored error reporting settings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧱 System Design / Architecture Pull Request
Related Issue
Closes Shared base configuration for all FireHub repositories #1
Description
Architecture Overview
System Design
Describe the architecture being introduced or enforced:
Core structure:
A centralized PHPStan base configuration (
base.neon) acting as the global static analysis baseline for all FireHub repositories.Contracts:
No new runtime contracts introduced. This layer defines analysis contracts (rules, constraints, and type-safety expectations) enforced via PHPStan configuration and future custom rules.
Boundaries:
Strict separation between:
Dependencies:
Design Decisions
System Boundaries
Included
base.neonconfigurationExcluded
Implementation
Core Changes
base.neonintroduced as shared PHPStan configurationContracts
Dependencies
phpstan/phpstanphpstan/phpstan-strict-rulesValidation
Architecture Compliance
Build & Stability
Impact Analysis
Core Impact
Runtime Impact
Future Extensions
Risks / Constraints
Risk Level
Potential Risks
Documentation
Checklist
Notes
Technical Notes
Future Work
Reviewer Guidance