Skip to content

Update PHPStan configuration and enable type treatment#706

Merged
n0nag0n merged 10 commits into
masterfrom
phpstan-rework
Jun 24, 2026
Merged

Update PHPStan configuration and enable type treatment#706
n0nag0n merged 10 commits into
masterfrom
phpstan-rework

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

This pull request makes a few minor updates to the PHP project's development dependencies and static analysis configuration, primarily to keep tools up to date and improve configuration clarity.

Dependency and configuration updates:

  • Updated the phpstan/phpstan development dependency version from ^2.1 to ^2.2 in composer.json to ensure compatibility with the latest features and fixes.
  • Added a YAML schema reference to the top of phpstan.dist.neon for improved editor support and validation.

Configuration cleanup:

  • Removed the index.php path and the treatPhpDocTypesAsCertain: false parameter from the parameters section in phpstan.dist.neon, likely to streamline static analysis configuration.

Copilot AI review requested due to automatic review settings June 23, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates PHPStan tooling/configuration for the FlightPHP core library to improve static analysis setup and editor support.

Changes:

  • Bump phpstan/phpstan from ^2.1 to ^2.2 in composer.json.
  • Add a YAML Language Server schema directive to phpstan.dist.neon.
  • Simplify PHPStan config by removing index.php from analyzed paths and removing the explicit treatPhpDocTypesAsCertain: false setting.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
phpstan.dist.neon Adds an editor schema reference and adjusts PHPStan parameters (paths + PHPDoc type treatment setting removal).
composer.json Updates PHPStan dev dependency version and reorders dev extension requirements.

Comment thread phpstan.dist.neon Outdated
Comment thread phpstan.dist.neon
@n0nag0n n0nag0n merged commit 03ed9fe into master Jun 24, 2026
21 checks passed
@n0nag0n n0nag0n deleted the phpstan-rework branch June 24, 2026 13:40
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.

3 participants