Skip to content

Commit 1f65a7e

Browse files
authored
Merge pull request #2 from maartenpaauw/develop
Release
2 parents 4b8b342 + 5bdea2c commit 1f65a7e

File tree

9 files changed

+24
-14
lines changed

9 files changed

+24
-14
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [develop, main]
66
pull_request:
7-
branches: [main]
7+
branches: [develop, main]
88

99
jobs:
1010
test:
@@ -13,12 +13,14 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.0]
17-
laravel: [8.*]
16+
php: [8.0, 8.1]
17+
laravel: [8.*, 9.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
2020
- laravel: 8.*
2121
testbench: ^6.23
22+
- laravel: 9.*
23+
testbench: ^7.1
2224

2325
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2426

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to `laravel-specification-pattern` will be documented in this file.
44

5+
## Unreleased
6+
7+
### Added
8+
9+
- Support for Laravel 9.
10+
511
## [v1.0.0] - 2022-01-21
612

713
- initial release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/maartenpaauw/laravel-specification-pattern/Check%20&%20fix%20styling?label=code%20style)](https://github.com/maartenpaauw/laravel-specification-pattern/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
66
[![Total Downloads](https://img.shields.io/packagist/dt/maartenpaauw/laravel-specification-pattern.svg?style=flat-square)](https://packagist.org/packages/maartenpaauw/laravel-specification-pattern)
77

8-
Filter a Eloquent collection with specifications.
8+
Filter an Illuminate collection with specifications.
99

1010
## Installation
1111

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"require": {
1919
"php": "^8.0",
2020
"spatie/laravel-package-tools": "^1.9.2",
21-
"illuminate/contracts": "^8.73"
21+
"illuminate/contracts": "^8.83|^9.2"
2222
},
2323
"require-dev": {
24-
"nunomaduro/collision": "^5.10",
24+
"nunomaduro/collision": "^5.11|^6.1",
2525
"nunomaduro/larastan": "^1.0",
2626
"orchestra/testbench": "^6.22",
2727
"pestphp/pest": "^1.21",

resources/views/.gitkeep

Whitespace-only changes.

src/AndSpecification.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ class AndSpecification extends CompositeSpecification
1313
/**
1414
* @param array<Specification<TCandidate>> $specifications
1515
*/
16-
public function __construct(private array $specifications)
17-
{
16+
public function __construct(
17+
private array $specifications,
18+
) {
1819
}
1920

2021
/**

src/NotSpecification.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ class NotSpecification extends CompositeSpecification
1313
/**
1414
* @param Specification<TCandidate> $specification
1515
*/
16-
public function __construct(private Specification $specification)
17-
{
16+
public function __construct(
17+
private Specification $specification,
18+
) {
1819
}
1920

2021
/**

src/OrSpecification.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ class OrSpecification extends CompositeSpecification
1313
/**
1414
* @param array<Specification<TCandidate>> $specifications
1515
*/
16-
public function __construct(private array $specifications)
17-
{
16+
public function __construct(
17+
private array $specifications,
18+
) {
1819
}
1920

2021
/**

src/SpecificationsServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public function configurePackage(Package $package): void
1717
$package
1818
->name('laravel-specification-pattern')
1919
->hasConfigFile()
20-
->hasViews()
2120
->hasCommand(MakeSpecificationCommand::class);
2221
}
2322

0 commit comments

Comments
 (0)