From 5bf71c84f2ca72b7f4805c4318022839bda959f4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Sep 2025 12:28:47 +0000 Subject: [PATCH 1/4] Initial plan From b5410442c9b29a77ea67b9587ceb61bc1e892de7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Sep 2025 12:44:09 +0000 Subject: [PATCH 2/4] Fix deprecated nullable type declarations in ComposerLocator and ReflectionProperty Co-authored-by: lisachenko <640114+lisachenko@users.noreply.github.com> --- src/Locator/ComposerLocator.php | 2 +- src/ReflectionProperty.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Locator/ComposerLocator.php b/src/Locator/ComposerLocator.php index 31a7da0..7fe0634 100644 --- a/src/Locator/ComposerLocator.php +++ b/src/Locator/ComposerLocator.php @@ -28,7 +28,7 @@ class ComposerLocator implements LocatorInterface */ private $loader; - public function __construct(ClassLoader $composerLoader = null) + public function __construct(?ClassLoader $composerLoader = null) { if ($composerLoader === null) { $loaders = spl_autoload_functions(); diff --git a/src/ReflectionProperty.php b/src/ReflectionProperty.php index 9f40490..7d7ec1c 100644 --- a/src/ReflectionProperty.php +++ b/src/ReflectionProperty.php @@ -68,8 +68,8 @@ class ReflectionProperty extends BaseReflectionProperty public function __construct( string $className, string $propertyName, - Property|Param $propertyOrPromotedParam = null, - PropertyItem|Param $propertyItemOrPromotedParam = null + Property|Param|null $propertyOrPromotedParam = null, + PropertyItem|Param|null $propertyItemOrPromotedParam = null ) { $this->className = ltrim($className, '\\'); if (!$propertyOrPromotedParam || !$propertyItemOrPromotedParam) { From 88d000f916612c13f8c41113ae49fdab0ea9580e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:26:13 +0000 Subject: [PATCH 3/4] Initial plan From ba4168a82758636b2d26534d93f563adec483fe2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:34:44 +0000 Subject: [PATCH 4/4] Update GitHub Actions to resolve CI build failures - Update actions/checkout from v2 to v4 - Update actions/cache from v2 to v4 (fixes deprecation warning) - Keep shivammathur/setup-php@v2 (already current) This resolves the CI failure: "This request has been automatically failed because it uses a deprecated version of actions/cache: v2" Co-authored-by: lisachenko <640114+lisachenko@users.noreply.github.com> --- .github/workflows/phpunit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index ba2b657..f7d766c 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -23,7 +23,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Install PHP" uses: "shivammathur/setup-php@v2" @@ -34,7 +34,7 @@ jobs: tools: composer:v2, cs2pr - name: "Cache dependencies" - uses: "actions/cache@v2" + uses: "actions/cache@v4" with: path: | ~/.composer/cache