Improve PHPStan discovery with explicit Drupal load; fix deprecation XML noise
### Problem/Motivation
Enhance PHPStan discovery by loading the Drupal bootstrap explicitly, and resolve PHP deprecation errors that corrupt the analysis XML output.
### Work items
- Commit(s): [0c3075822f](https://git.drupalcode.org/project/project_analysis/-/commit/0c3075822f69), [3e37c1532f](https://git.drupalcode.org/project/project_analysis/-/commit/3e37c1532fe8)
### Credit
- Implemented by: @bbrala
- Test-project feedback: @goba, @nicxvan, @wimleers, @rfay, @larowlan
---
*Filed retroactively as part of the Drupal 12 rector coverage effort. Closed as fixed; credit to be applied to the contributors listed above.*
*AI was used extensively to build this work and to file this issue. See [Dries Buytaert: AI-generated Rector rules for Drupal](https://dri.es/ai-generated-rector-rules-for-drupal) and [Björn Brala: Drupal Rector rules are config, not code. Mostly.](https://www.linkedin.com/pulse/drupal-rector-rules-config-code-mostly-bj%C3%B6rn-brala-vfpwe/).*
issue