From ae5684bc88ae1d3d4db70c26c1871173e6ef1a63 Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Sun, 16 Nov 2025 08:51:34 -0500 Subject: [PATCH] chore: update dependencies and improve test class reflection --- composer.json | 2 +- composer.lock | 85 ++++++++++++------------- tests/Attributes/HandlesMessageTest.php | 10 ++- 3 files changed, 47 insertions(+), 50 deletions(-) diff --git a/composer.json b/composer.json index d387105..dd00d9a 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "require-dev": { "phpunit/phpunit": "^12.4", "mockery/mockery": "^1.6", - "squizlabs/php_codesniffer": "^3.12", + "squizlabs/php_codesniffer": "^4.0", "lendable/composer-license-checker": "^1.2", "phpstan/phpstan": "^2.1.31", "kwn/php-rdkafka-stubs": "^2.2" diff --git a/composer.lock b/composer.lock index 3db9c91..736ee65 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3554ee67a6c8a798d673b42dc9de3093", + "content-hash": "856fdd307835b635e6e912a2d5028515", "packages": [ { "name": "adhocore/cli", @@ -300,16 +300,16 @@ }, { "name": "google/protobuf", - "version": "v4.33.0", + "version": "v4.33.1", "source": { "type": "git", "url": "https://github.com/protocolbuffers/protobuf-php.git", - "reference": "b50269e23204e5ae859a326ec3d90f09efe3047d" + "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/b50269e23204e5ae859a326ec3d90f09efe3047d", - "reference": "b50269e23204e5ae859a326ec3d90f09efe3047d", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/0cd73ccf0cd26c3e72299cce1ea6144091a57e12", + "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12", "shasum": "" }, "require": { @@ -338,13 +338,13 @@ "proto" ], "support": { - "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.0" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.1" }, - "time": "2025-10-15T20:10:28+00:00" + "time": "2025-11-12T21:58:05+00:00" }, { "name": "illuminate/collections", - "version": "v12.38.0", + "version": "v12.38.1", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", @@ -403,7 +403,7 @@ }, { "name": "illuminate/conditionable", - "version": "v12.38.0", + "version": "v12.38.1", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", @@ -449,7 +449,7 @@ }, { "name": "illuminate/container", - "version": "v12.38.0", + "version": "v12.38.1", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", @@ -510,7 +510,7 @@ }, { "name": "illuminate/contracts", - "version": "v12.38.0", + "version": "v12.38.1", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", @@ -558,7 +558,7 @@ }, { "name": "illuminate/database", - "version": "v12.38.0", + "version": "v12.38.1", "source": { "type": "git", "url": "https://github.com/illuminate/database.git", @@ -629,7 +629,7 @@ }, { "name": "illuminate/macroable", - "version": "v12.38.0", + "version": "v12.38.1", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -675,7 +675,7 @@ }, { "name": "illuminate/support", - "version": "v12.38.0", + "version": "v12.38.1", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", @@ -2370,16 +2370,16 @@ }, { "name": "spiral/roadrunner", - "version": "v2025.1.4", + "version": "v2025.1.5", "source": { "type": "git", "url": "https://github.com/roadrunner-server/roadrunner.git", - "reference": "ff25363b72dd6ab2bd642d741db13b30d52d254f" + "reference": "d68bee29eb689c5310f8ede935c95a13bd7cc153" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/roadrunner-server/roadrunner/zipball/ff25363b72dd6ab2bd642d741db13b30d52d254f", - "reference": "ff25363b72dd6ab2bd642d741db13b30d52d254f", + "url": "https://api.github.com/repos/roadrunner-server/roadrunner/zipball/d68bee29eb689c5310f8ede935c95a13bd7cc153", + "reference": "d68bee29eb689c5310f8ede935c95a13bd7cc153", "shasum": "" }, "type": "metapackage", @@ -2405,10 +2405,9 @@ "homepage": "https://roadrunner.dev/", "support": { "chat": "https://discord.gg/V6EK4he", - "docs": "https://roadrunner.dev/docs", - "forum": "https://forum.roadrunner.dev/", + "docs": "https://docs.roadrunner.dev/", "issues": "https://github.com/roadrunner-server/roadrunner/issues", - "source": "https://github.com/roadrunner-server/roadrunner/tree/v2025.1.4" + "source": "https://github.com/roadrunner-server/roadrunner/tree/v2025.1.5" }, "funding": [ { @@ -2416,7 +2415,7 @@ "type": "github" } ], - "time": "2025-10-02T16:43:06+00:00" + "time": "2025-11-13T17:24:29+00:00" }, { "name": "spiral/roadrunner-http", @@ -4172,16 +4171,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.4.2", + "version": "12.4.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a94ea4d26d865875803b23aaf78c3c2c670ea2ea" + "reference": "d8f644d8d9bb904867f7a0aeb1bd306e0d966949" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a94ea4d26d865875803b23aaf78c3c2c670ea2ea", - "reference": "a94ea4d26d865875803b23aaf78c3c2c670ea2ea", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d8f644d8d9bb904867f7a0aeb1bd306e0d966949", + "reference": "d8f644d8d9bb904867f7a0aeb1bd306e0d966949", "shasum": "" }, "require": { @@ -4249,7 +4248,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.4.2" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.4.3" }, "funding": [ { @@ -4273,7 +4272,7 @@ "type": "tidelift" } ], - "time": "2025-10-30T08:41:39+00:00" + "time": "2025-11-13T07:20:26+00:00" }, { "name": "sebastian/cli-parser", @@ -5174,26 +5173,26 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.13.5", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "0ca86845ce43291e8f5692c7356fccf3bcf02bf4" + "reference": "0525c73950de35ded110cffafb9892946d7771b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0ca86845ce43291e8f5692c7356fccf3bcf02bf4", - "reference": "0ca86845ce43291e8f5692c7356fccf3bcf02bf4", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0525c73950de35ded110cffafb9892946d7771b5", + "reference": "0525c73950de35ded110cffafb9892946d7771b5", "shasum": "" }, "require": { "ext-simplexml": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": ">=5.4.0" + "php": ">=7.2.0" }, "require-dev": { - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" + "phpunit/phpunit": "^8.4.0 || ^9.3.4 || ^10.5.32 || 11.3.3 - 11.5.28 || ^11.5.31" }, "bin": [ "bin/phpcbf", @@ -5218,7 +5217,7 @@ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" } ], - "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "description": "PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.", "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", "keywords": [ "phpcs", @@ -5249,7 +5248,7 @@ "type": "thanks_dev" } ], - "time": "2025-11-04T16:30:35+00:00" + "time": "2025-11-10T16:43:36+00:00" }, { "name": "staabm/side-effects-detector", @@ -5895,16 +5894,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.2.3", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + "reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/d74205c497bfbca49f34d4bc4c19c17e22db4ebb", + "reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb", "shasum": "" }, "require": { @@ -5933,7 +5932,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + "source": "https://github.com/theseer/tokenizer/tree/1.3.0" }, "funding": [ { @@ -5941,7 +5940,7 @@ "type": "github" } ], - "time": "2024-03-03T12:36:25+00:00" + "time": "2025-11-13T13:44:09+00:00" } ], "aliases": [], @@ -5953,5 +5952,5 @@ "php": "^8.4" }, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/tests/Attributes/HandlesMessageTest.php b/tests/Attributes/HandlesMessageTest.php index 7bc8c08..42823d9 100644 --- a/tests/Attributes/HandlesMessageTest.php +++ b/tests/Attributes/HandlesMessageTest.php @@ -11,7 +11,10 @@ class HandlesMessageTest extends Unit { public function testGetsClass(): void { - $reflection = new \ReflectionClass(TestClass::class); + $class = new #[HandlesMessage('Siteworxpro\Tests\Attributes\TestClass')] class { + }; + + $reflection = new \ReflectionClass($class); $attributes = $reflection->getAttributes(HandlesMessage::class); $this->assertCount(1, $attributes); @@ -20,8 +23,3 @@ class HandlesMessageTest extends Unit $this->assertEquals('Siteworxpro\Tests\Attributes\TestClass', $instance->getMessageClass()); } } - -#[HandlesMessage('Siteworxpro\Tests\Attributes\TestClass')] -class TestClass // @codingStandardsIgnoreLine -{ -}