Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 1 addition & 7 deletions tests/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading