diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04f2a0a..1fc01e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,15 +11,21 @@ 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: 13 + php: 8.1 + - laravel: 13 + php: 8.2 - laravel: 12 php: 8.1 - laravel: 11 php: 8.1 - laravel: 9 php: 8.4 + - laravel: 9 + php: 8.5 name: PHP ${{ matrix.php }}; Laravel ${{ matrix.laravel }} @@ -69,6 +75,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..68f722b 100644 --- a/composer.json +++ b/composer.json @@ -16,12 +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", + "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" 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 }