Skip to content

Commit

Permalink
Merge pull request #31 from rickselby/laravel-11
Browse files Browse the repository at this point in the history
Support Laravel 11
  • Loading branch information
rickselby authored Mar 14, 2024
2 parents a2d4657 + bbeef40 commit d19bc9a
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ jobs:
fail-fast: false
matrix:
php: [8.1, 8.2, 8.3]
laravel: [9.*, 10.*]
laravel: [10.*, 11.*]
exclude:
- php: 8.1
laravel: 11.*
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }}

steps:
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [3.8.0] - 2024-03-12
### Added
- Support Laravel 10.x

## Removed
- Support for Laravel 8.x
- Support for Laravel 9.x
-
## [3.7.0] - 2023-11-30
### Added
- Support for PHP 8.3

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Add a per-request caching layer to Laravel's Gate.

| Laravel Auto Presenter Mapper | Laravel |
|-------------------------------|----------|
| **3.x** | 5.5-10.x |
| **3.x** | 5.5-11.x |
| 2.x | 5.5-5.8 |
| 1.x | 5.5-5.7 |

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
}
],
"require": {
"illuminate/auth": "8.*|9.*|10.*",
"illuminate/contracts": "8.*|9.*|10.*"
"illuminate/auth": "10.*|11.*",
"illuminate/contracts": "10.*|11.*"
},
"require-dev": {
"graham-campbell/testbench": "^6.0",
"phpunit/phpunit": "^9.0"
"graham-campbell/testbench": "^6.1",
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
Expand Down
12 changes: 6 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Laravel Gate Cache Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/ForUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function setUp(): void
parent::setUp();

$this->gateCache = $this->getMockBuilder(GateCache::class)
->setMethods(['callAuthCallback'])
->onlyMethods(['callAuthCallback'])
->setConstructorArgs([
$this->app,
// User Resolver must return true for 5.6
Expand Down
2 changes: 1 addition & 1 deletion tests/RawTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function setUp(): void
parent::setUp();

$this->gateCache = $this->getMockBuilder(GateCache::class)
->setMethods(['callAuthCallback'])
->onlyMethods(['callAuthCallback'])
->setConstructorArgs([
$this->app,
// User Resolver must return true for 5.6
Expand Down

0 comments on commit d19bc9a

Please sign in to comment.