From a0649c6323b53e5c9f84657fd8a3b93bb4645ff3 Mon Sep 17 00:00:00 2001 From: bytestream Date: Fri, 20 Mar 2026 16:41:03 +0000 Subject: [PATCH 1/3] Laravel 13 support --- .github/workflows/ci.yml | 14 ++++++++++++-- composer.json | 6 ++---- tests/Helpers.php | 8 +------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04f2a0a..0cc9972 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,8 @@ jobs: strategy: fail-fast: true matrix: - php: [ '8.1', '8.2', '8.3', '8.4'] - laravel: [ '9', '10', '11', '12' ] + php: [ '8.1', '8.2', '8.3', '8.4', '8.5'] + laravel: [ '9', '10', '11', '12', '13' ] exclude: - laravel: 12 php: 8.1 @@ -20,6 +20,8 @@ jobs: php: 8.1 - laravel: 9 php: 8.4 + - laravel: 9 + php: 8.5 name: PHP ${{ matrix.php }}; Laravel ${{ matrix.laravel }} @@ -69,6 +71,14 @@ jobs: command: composer require "laravel/framework:12.*" "phpunit/phpunit:^9.3.7" --no-update --no-interaction if: "matrix.laravel == '12'" + - name: Select Laravel 13 + uses: nick-invision/retry@v1 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer require "laravel/framework:13.*" "phpunit/phpunit:^9.3.7" --no-update --no-interaction + if: "matrix.laravel == '13'" + - name: Install PHP Dependencies uses: nick-invision/retry@v1 with: diff --git a/composer.json b/composer.json index 9668b23..18ced8f 100644 --- a/composer.json +++ b/composer.json @@ -16,14 +16,12 @@ "require": { "php": "^8.1", "twig/twig": "~3.21", - "illuminate/support": "^9|^10|^11|^12", - "illuminate/view": "^9|^10|^11|^12" + "illuminate/support": "^9|^10|^11|^12|^13", + "illuminate/view": "^9|^10|^11|^12|^13" }, "require-dev": { "ext-json": "*", - "laravel/framework": "^9|^10|^11|^12", "mockery/mockery": "^1.3.1", - "phpunit/phpunit": "^8.5.8 || ^9.3.7 || ^10.0 || ^11.0 || ^12.0", "squizlabs/php_codesniffer": "^3.6" }, "autoload": { diff --git a/tests/Helpers.php b/tests/Helpers.php index 743d6fa..c8586ac 100644 --- a/tests/Helpers.php +++ b/tests/Helpers.php @@ -16,13 +16,7 @@ public static function readObjectAttribute(object $object, string $attributeName return $object->$attributeName; } - $attribute->setAccessible(true); - - try { - return $attribute->getValue($object); - } finally { - $attribute->setAccessible(false); - } + return $attribute->getValue($object); } catch (\ReflectionException $e) { // do nothing } From 916572cb9088f9f3dfb7ef464d5ec50bce4e4bf2 Mon Sep 17 00:00:00 2001 From: bytestream Date: Fri, 20 Mar 2026 16:42:16 +0000 Subject: [PATCH 2/3] oopsie --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 18ced8f..68f722b 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,9 @@ }, "require-dev": { "ext-json": "*", + "laravel/framework": "^9|^10|^11|^12|^13", "mockery/mockery": "^1.3.1", + "phpunit/phpunit": "^8.5.8 || ^9.3.7 || ^10.0 || ^11.0 || ^12.0", "squizlabs/php_codesniffer": "^3.6" }, "autoload": { From a2834f9c036f2f390719365c59c4704dc9843a06 Mon Sep 17 00:00:00 2001 From: bytestream Date: Fri, 20 Mar 2026 16:49:15 +0000 Subject: [PATCH 3/3] wip --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cc9972..1fc01e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,10 @@ jobs: php: [ '8.1', '8.2', '8.3', '8.4', '8.5'] laravel: [ '9', '10', '11', '12', '13' ] exclude: + - laravel: 13 + php: 8.1 + - laravel: 13 + php: 8.2 - laravel: 12 php: 8.1 - laravel: 11