Skip to content

Conversation

@dbellettini
Copy link
Member

@dbellettini dbellettini commented Aug 2, 2025

  • Upgrade PHP
  • Upgrade all the libraries
  • Fix all PHPStan errors

@dbellettini dbellettini force-pushed the php-8.4 branch 2 times, most recently from eda4d33 to 14b4f56 Compare August 2, 2025 16:24
@dbellettini dbellettini requested a review from Copilot August 2, 2025 16:26
@dbellettini dbellettini marked this pull request as ready for review August 2, 2025 16:26
@dbellettini dbellettini self-assigned this Aug 2, 2025
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 upgrades the PHP version requirement from PHP 7.1 to PHP 8.4, modernizing the codebase to take advantage of newer PHP features and updating dependencies to compatible versions.

  • Updates PHP version requirement from ^7.1 to ^8.4 in composer.json
  • Modernizes code with PHP 8+ features like typed properties, constructor promotion, and attributes
  • Updates PHPUnit from v8 to v12 and PHPStan from v0.11 to v2.1 with corresponding API changes

Reviewed Changes

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

Show a summary per file
File Description
composer.json Updates PHP requirement to ^8.4 and bumps PHPUnit/PHPStan versions
Dockerfile Changes base image from php:7.4-cli to php:8.4-cli
phpunit.xml Updates PHPUnit configuration schema to v12.3
phpstan.neon Updates PHPStan configuration syntax for newer version
tests/PreciousTest.php Replaces @dataProvider with #[DataProvider] attribute
src/Type/*.php Adds typed parameters and return types to cast methods
src/PHPStan/Rule/*.php Updates PHPStan API usage from Broker to ReflectionProvider
src/*.php Modernizes with constructor promotion and readonly properties

@dbellettini dbellettini merged commit 8ce9a6d into master Aug 2, 2025
1 check passed
@dbellettini dbellettini deleted the php-8.4 branch August 2, 2025 16:35
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