Skip to content

Commit 5a1ca08

Browse files
Merge pull request #238 from MarcinOrlowski/dev
Laravel 10 support
2 parents fd13279 + d362dba commit 5a1ca08

File tree

79 files changed

+163
-427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+163
-427
lines changed

.codecov.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
# Laravel API Response Builder CodeCov.io config file
44
#
5-
# @package MarcinOrlowski\ResponseBuilder
6-
#
75
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
86
# @copyright 2016-2023 Marcin Orlowski
97
# @license http://www.opensource.org/licenses/mit-license.php MIT

.github/workflows/coding-standards.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
# Laravel API Response Builder Static code analysis Github Action config
44
#
5-
# @package MarcinOrlowski\ResponseBuilder
6-
#
75
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
86
# @copyright 2016-2023 Marcin Orlowski
97
# @license http://www.opensource.org/licenses/mit-license.php MIT

.github/workflows/coverage.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
# Laravel API Response Builder Unit tests Github Action config
44
#
5-
# @package MarcinOrlowski\ResponseBuilder
6-
#
75
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
86
# @copyright 2016-2023 Marcin Orlowski
97
# @license http://www.opensource.org/licenses/mit-license.php MIT

.github/workflows/phpstan.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
# Laravel API Response Builder Static code analysis Github Action config
44
#
5-
# @package MarcinOrlowski\ResponseBuilder
6-
#
75
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
86
# @copyright 2016-2023 Marcin Orlowski
97
# @license http://www.opensource.org/licenses/mit-license.php MIT
@@ -29,8 +27,8 @@ jobs:
2927
fail-fast: false
3028
matrix:
3129
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
32-
laravel: ["9.x"]
33-
php: ["8.0", "8.1"]
30+
laravel: ["10.x"]
31+
php: ["8.1"]
3432

3533
runs-on: ubuntu-latest
3634

.github/workflows/phpunit.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
# Laravel API Response Builder Unit tests Github Action config
44
#
5-
# @package MarcinOrlowski\ResponseBuilder
6-
#
75
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
86
# @copyright 2016-2023 Marcin Orlowski
97
# @license http://www.opensource.org/licenses/mit-license.php MIT
@@ -29,8 +27,8 @@ jobs:
2927
fail-fast: false
3028
matrix:
3129
# quotes are needed it is treated as a number and zero at decimal part is gone at runtime
32-
laravel: ["9.x"]
33-
php: ["8.0", "8.1"]
30+
laravel: ["10.x"]
31+
php: ["8.1"]
3432

3533
runs-on: ubuntu-latest
3634

@@ -52,6 +50,6 @@ jobs:
5250
with:
5351
bootstrap: "vendor/autoload.php"
5452
configuration: "tests/phpunit.xml"
55-
version: "9.6.3"
53+
# version: "10.0.89"
5654
# memory_limit: "16M"
5755
php_version: "${{ matrix.php }}"

composer.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "marcin-orlowski/laravel-api-response-builder",
33
"description": "Helps building nice, normalized and easy to consume Laravel REST API.",
44
"homepage": "https://github.com/MarcinOrlowski/laravel-api-response-builder",
5-
"version": "9.4.0",
5+
"version": "10.0.0",
66
"keywords": [
77
"laravel",
8-
"laravel9",
8+
"laravel10",
99
"json",
1010
"api",
1111
"builder",
@@ -44,18 +44,19 @@
4444
}
4545
},
4646
"require": {
47-
"php": "^8.0|^8.1",
48-
"laravel/framework": "^9.0"
47+
"php": "^8.1|^8.2",
48+
"laravel/framework": "^10.0"
4949
},
5050
"require-dev": {
5151
"marcin-orlowski/phpunit-extra-asserts": "^5.1.0",
52-
"orchestra/testbench": "^7.0",
53-
"phpunit/phpunit": "^9.6.3",
54-
"phpunit/php-code-coverage": "^9.2",
52+
"orchestra/testbench": "^8.0",
53+
"phpunit/phpunit": "^10.0.0",
54+
"phpunit/php-code-coverage": "^10.0",
5555
"nunomaduro/larastan": "^2.0",
5656
"marcin-orlowski/php-lockpick": "^1.0"
5757
},
5858
"scripts": {
59-
"test": "vendor/bin/phpunit -c tests/phpunit.xml"
59+
"test": "vendor/bin/phpunit -c tests/phpunit.xml",
60+
"mdlint": "markdownlint --config .markdownlint.yaml --ignore vendor **/*.md .github/**/*.md docs README.md"
6061
}
6162
}

docs/CHANGES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ should be able to easily backport future new features to older versions rather e
1818

1919
## CHANGE LOG ##
2020

21-
* v9.4.0 (2023-12-18)
21+
* v10.0.0 (2023-02-20)
22+
* **BACKWARD INCOMPATIBLE CHANGES** ([more info](compatibility.md)).
23+
* Added support for Laravel v10.
24+
25+
* v9.4.0 (2023-02-18)
2226
* **BACKWARD INCOMPATIBLE CHANGES** ([more info](compatibility.md)).
2327
* Removed redundant PHPDocs entries for type-hinted elements.
2428
* Fixed exception handler helper not properly handling iterating over mismatched configuration

docs/compatibility.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[« Documentation table of contents](README.md)
66

77
* [Important incompatibile changes](#incompatibility-notes)
8+
* [Changes in v10.*](#v10)
89
* [Changes in v9.4](#v94)
910
* [Changes in v9.*](#v9) (up to v9.3)
1011
* [Changes in v8.*](#v8)
@@ -22,6 +23,10 @@
2223

2324
Backward (in)compatibility notes. Pay attention if you are upgrading.
2425

26+
## v10 ##
27+
28+
* Requires Laravel 10.0+ and PHP 8.1+
29+
2530
## v9.4 ##
2631

2732
* Requires Laravel 9.0+ and PHP 8.0+

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#
33
# Laravel API Response Builder PHPStan config file
44
#
5-
# @package MarcinOrlowski\ResponseBuilder
6-
#
75
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
86
# @copyright 2016-2023 Marcin Orlowski
97
# @license http://www.opensource.org/licenses/mit-license.php MIT

src/ApiCodesHelpers.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
/**
77
* Laravel API Response Builder
88
*
9-
* @package MarcinOrlowski\ResponseBuilder
10-
*
119
* @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
1210
* @copyright 2016-2023 Marcin Orlowski
1311
* @license http://www.opensource.org/licenses/mit-license.php MIT

0 commit comments

Comments
 (0)