Skip to content

Commit 5ee5603

Browse files
authored
Merge pull request #14 from joelbladt/main
Update 2.x
2 parents 3056ef6 + da2c27c commit 5ee5603

File tree

11 files changed

+1749
-925
lines changed

11 files changed

+1749
-925
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
strategy:
2727
fail-fast: true
2828
matrix:
29-
php: [8.2, 8.3]
30-
phpunit: ['11.0', '11.4']
31-
phpstan: ['2.1']
32-
paratest: ['7.6', '7.8']
33-
larastan: ['v3.1']
29+
php: [ 8.3, 8.4 ]
30+
phpunit: [ '12.1', '12.2' ]
31+
phpstan: [ '2.1' ]
32+
paratest: [ '7.8', '7.9', '7.10' ]
33+
larastan: [ 'v3.5' ]
3434

3535
name: PHP ${{ matrix.php }} - PHPUnit ${{ matrix.phpunit }} - with Paratest ${{ matrix.paratest }} - PHPStan ${{ matrix.phpstan }} - Larastan ${{ matrix.larastan }}
3636

@@ -51,9 +51,9 @@ jobs:
5151
REDIS_LIBS: liblz4-dev, liblzf-dev, libzstd-dev
5252

5353
- name: Set Framework version
54-
run: composer config version "11.x-dev"
54+
run: composer config version "12.x-dev"
5555

56-
- name: Set minimum PHP 8.2 versions
56+
- name: Set minimum PHP 8.3 versions
5757
uses: nick-fields/retry@v3
5858
with:
5959
timeout_minutes: 5
@@ -96,7 +96,7 @@ jobs:
9696
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
9797

9898
- name: Execute tests
99-
run: php artisan test --parallel --configuration="phpunit.xml" --coverage-clover=build/logs/clover.xml
99+
run: php artisan test --parallel --configuration="phpunit.xml.dist" --coverage-clover=build/logs/clover.xml
100100
env:
101101
DB_CONNECTION: sqlite
102102
DB_DATABASE: ":memory:"

app/Http/Resources/BaseResourceCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Illuminate\Pagination\LengthAwarePaginator;
88

99
/**
10-
* @property LengthAwarePaginator<self> $resource
10+
* @property LengthAwarePaginator<int, self> $resource
1111
*/
1212
class BaseResourceCollection extends ResourceCollection
1313
{

app/Interfaces/BookRepositoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
interface BookRepositoryInterface
1111
{
1212
/**
13-
* @return LengthAwarePaginator<Book>
13+
* @return LengthAwarePaginator<int, Book>
1414
*/
1515
public function getAllBooks(int $perPage = 10, int $page = 1): LengthAwarePaginator;
1616

app/Interfaces/PublisherRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
interface PublisherRepositoryInterface
1212
{
1313
/**
14-
* @return LengthAwarePaginator<Publisher>
14+
* @return LengthAwarePaginator<int, Publisher>
1515
*/
1616
public function getAllPublisher(): LengthAwarePaginator;
1717

1818
public function findPublisherById(int $id): ?Publisher;
1919

2020
/**
21-
* @return LengthAwarePaginator<Book>
21+
* @return LengthAwarePaginator<int, Book>
2222
*/
2323
public function findBooksByPublisherId(
2424
int $id,

app/Repositories/BookRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class BookRepository implements BookRepositoryInterface
1313
{
1414
/**
15-
* @return LengthAwarePaginator<Book>
15+
* @return LengthAwarePaginator<int, Book>
1616
*/
1717
public function getAllBooks(int $perPage = 10, int $page = 1): LengthAwarePaginator
1818
{

app/Repositories/PublisherRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class PublisherRepository implements PublisherRepositoryInterface
1414
{
1515
/**
16-
* @return LengthAwarePaginator<Publisher>
16+
* @return LengthAwarePaginator<int, Publisher>
1717
*/
1818
public function getAllPublisher(int $perPage = 10, int $page = 1): LengthAwarePaginator
1919
{
@@ -26,7 +26,7 @@ public function findPublisherById(int $id): ?Publisher
2626
}
2727

2828
/**
29-
* @return LengthAwarePaginator<Book>
29+
* @return LengthAwarePaginator<int, Book>
3030
*
3131
* @throws PublisherNotFoundException
3232
*/

app/Services/BookService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(
2222
}
2323

2424
/**
25-
* @return LengthAwarePaginator<Book>
25+
* @return LengthAwarePaginator<int, Book>
2626
*/
2727
public function getAllBooks(int $perPage = 10, int $page = 1): LengthAwarePaginator
2828
{

app/Services/PublisherService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(
1919
}
2020

2121
/**
22-
* @return LengthAwarePaginator<Publisher>
22+
* @return LengthAwarePaginator<int, Publisher>
2323
*/
2424
public function getAllPublisher(int $perPage = 10, int $page = 1): LengthAwarePaginator
2525
{
@@ -41,7 +41,7 @@ public function findPublisherById(int $id): ?Publisher
4141
}
4242

4343
/**
44-
* @return LengthAwarePaginator<Book>
44+
* @return LengthAwarePaginator<int, Book>
4545
*/
4646
public function findBooksByPublisherId(
4747
int $publisherId,

composer.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@
55
"keywords": ["laravel", "framework"],
66
"license": "MIT",
77
"require": {
8-
"php": "^8.2",
9-
"darkaonline/l5-swagger": "^8.6",
10-
"laravel/framework": "^12.0",
11-
"laravel/tinker": "^2.9"
8+
"php": "^8.3",
9+
"darkaonline/l5-swagger": "^9.0",
10+
"laravel/framework": "^12.19",
11+
"laravel/tinker": "^2.10"
1212
},
1313
"require-dev": {
14-
"brianium/paratest": "^7.6",
15-
"fakerphp/faker": "^1.23",
16-
"larastan/larastan": "^v3.1",
17-
"laravel/pail": "^1.1",
18-
"laravel/pint": "^1.13",
19-
"laravel/sail": "^1.26",
14+
"brianium/paratest": "^7.10",
15+
"fakerphp/faker": "^1.24",
16+
"larastan/larastan": "^v3.5",
17+
"laravel/pail": "^1.2",
18+
"laravel/pint": "^1.23",
19+
"laravel/sail": "^1.43",
2020
"mockery/mockery": "^1.6",
21-
"nunomaduro/collision": "^8.1",
21+
"nunomaduro/collision": "^v8.8",
2222
"phpstan/phpstan": "^2.1",
23-
"phpunit/phpunit": "^11.4"
23+
"phpunit/phpunit": "^12.2.6",
24+
"roave/security-advisories": "dev-latest"
2425
},
2526
"autoload": {
2627
"psr-4": {

0 commit comments

Comments
 (0)