Skip to content

Upgrade PHP stack#7

Merged
r-brown merged 9 commits intomasterfrom
feature/AAV/upgrade-php-stack
Nov 15, 2025
Merged

Upgrade PHP stack#7
r-brown merged 9 commits intomasterfrom
feature/AAV/upgrade-php-stack

Conversation

@r-brown
Copy link
Copy Markdown
Member

@r-brown r-brown commented Nov 15, 2025

No description provided.

Copy link
Copy Markdown
Contributor

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 stack from version 7.4 to 8.2, bringing the codebase up to modern PHP standards with improved type safety and updated dependencies.

Key changes:

  • PHP version requirement upgraded from 7.4 to 8.2
  • Type hints added throughout the codebase (mixed, string, array, bool, void, static, nullable types)
  • Breaking change: parameter order modified in LicenseService::create() and LicenseService::update() methods
  • PHPUnit upgraded from 6.5 to 10.5 with updated configuration
  • Dependencies updated (faker, php-cli-tools)
  • CI/CD workflows modernized with PHP 8.2-8.4 testing matrix

Reviewed Changes

Copilot reviewed 30 out of 31 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
composer.json Updates PHP requirement to >=8.2 and modernizes dependencies (PHPUnit 10.5, fakerphp/faker, wp-cli/php-cli-tools)
phpunit.xml Migrates to PHPUnit 10.5 configuration schema with updated attributes
common/Constants.php Bumps version from 2.5.0 to 2.6.0
README.md Updates version reference and documentation link
vo/ValidationResults.php Adds type hints (string, mixed) to methods
vo/ValidationParameters.php Adds type hints with mixed return types for getter methods
vo/Page.php Implements ArrayAccess interface methods with proper type hints
vo/Context.php Adds type hints to magic methods (__set, __isset, __unset) and setValue
service/ValidationService.php Adds mixed return type to retrieveValidationFile method
service/UtilityService.php Updates filter parameter to nullable type syntax (?string)
service/TransactionService.php Updates filter parameter to nullable type syntax
service/TokenService.php Updates filter parameter to nullable type syntax
service/ProductService.php Updates filter parameter to nullable type syntax
service/ProductModuleService.php Updates filter parameter to nullable type syntax
service/PaymentMethodService.php Updates filter parameter to nullable type syntax
service/NetLicensingService.php Adds void return type to configure method
service/LicenseeService.php Updates filter parameter to nullable type syntax
service/LicenseTemplateService.php Updates filter parameter to nullable type syntax
service/LicenseService.php Reorders parameters (breaking change) and updates filter parameter type
entity/traits/Properties.php Adds comprehensive type hints including static return type and union types
entity/BaseEntity.php Adds type hints to __set magic method
entity/LicenseTransactionJoin.php Updates constructor parameters to nullable type syntax
demo/NetLicensingDemo.php Updates calls to reflect parameter reordering and improves null handling
.gitignore Adds .phpunit.cache directory
.travis.yml Removes deprecated Travis CI configuration
.github/workflows/php.yml Removes old GitHub Actions workflow
.github/workflows/netlicensing-php-dependency.yml Removes old dependency test workflow
.github/netlicensing-php-dependabot.yml Removes incomplete dependabot config
.github/dependabot.yml Adds complete dependabot configuration for composer and GitHub Actions
.github/workflows/netlicensing-php-dependency-test.yml Adds new dependency test workflow with PHP 8.4
.github/workflows/netlicensing-php-demo.yml Adds comprehensive demo test workflow for PHP 8.2-8.4

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread service/LicenseService.php
Comment thread service/LicenseService.php
Comment thread vo/ValidationParameters.php Outdated
Comment thread vo/ValidationParameters.php Outdated
Comment thread service/TransactionService.php
Comment thread service/PaymentMethodService.php
@r-brown r-brown force-pushed the feature/AAV/upgrade-php-stack branch from ee7499d to e36ae3a Compare November 15, 2025 08:59
Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 15, 2025

@r-brown I've opened a new pull request, #8, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 15, 2025

@r-brown I've opened a new pull request, #9, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits November 15, 2025 10:08
* Initial plan

* Add string type hint to TransactionService::get() $number parameter

Co-authored-by: r-brown <1361258+r-brown@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: r-brown <1361258+r-brown@users.noreply.github.com>
* Initial plan

* Add string type hint to PaymentMethodService::get() $number parameter

Co-authored-by: r-brown <1361258+r-brown@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: r-brown <1361258+r-brown@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 30 out of 31 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vo/ValidationParameters.php Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@r-brown r-brown merged commit c2b2ead into master Nov 15, 2025
8 checks passed
@r-brown r-brown deleted the feature/AAV/upgrade-php-stack branch November 15, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants