Skip to content

Commit

Permalink
Add PHP 8.2 Support (#196)
Browse files Browse the repository at this point in the history
* add php 8.2 to workflow

* update tests to support L8

* Fix styling
  • Loading branch information
patinthehat authored Dec 7, 2022
1 parent f7b6ce9 commit ed5ef80
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0]
php: [8.2, 8.1, 8.0]
laravel: [9.*, 8.*]
dependency-version: [prefer-stable]
include:
Expand All @@ -33,7 +33,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
Expand Down
2 changes: 1 addition & 1 deletion tests/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
$response->assertStatus(200);

expect(
str($response->headers->get('content-type'))->before(';')->value()
(string)(str($response->headers->get('content-type'))->before(';'))
)->toBe($contentType);
});
});
7 changes: 7 additions & 0 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<?php

uses(Spatie\Feed\Test\TestCase::class)->in('.');

if (! function_exists('str')) {
function str($string)
{
return \Illuminate\Support\Str::of($string);
}
}

0 comments on commit ed5ef80

Please sign in to comment.