Enable Discovery debug logging for production troubleshooting

- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
2025-08-11 20:13:26 +02:00
parent 59fd3dd3b1
commit 55a330b223
3683 changed files with 2956207 additions and 16948 deletions

42
phpstan.neon Normal file
View File

@@ -0,0 +1,42 @@
includes:
- phpstan-baseline.neon
- phpstan-rules.neon
parameters:
level: 8
paths:
- src
excludePaths:
- src/Framework/View/cache
- src/Framework/Cache/storage
- src/Application/Security/Events/
- src/*/views/*.php # Template files often have undefined vars
ignoreErrors:
# Limit dynamic property access ignores to view-related code
-
message: '#Access to an undefined property#'
paths:
- src/Framework/View/*
- src/*/views/*
# Ignore reflection-based dependency injection patterns (container wiring)
- '#Instantiated class .* not found#'
# Template variables are passed dynamically (only in views)
-
message: '#Variable \$\w+ might not be defined#'
paths:
- src/*/views/*
# Request DTOs are hydrated by framework
- '#Class .* has an uninitialized readonly property#'
# Controller request properties are populated by request handlers
- '#Class .*Request has an uninitialized readonly property#'
reportUnmatchedIgnoredErrors: false
tmpDir: var/phpstan
phpVersion: 80400 # PHP 8.4
# Type hints for dynamic container resolution
universalObjectCratesClasses:
- App\Framework\DI\Container
# Bootstrap file for autoloading and framework initialization
bootstrapFiles:
- tests/bootstrap.php