Skip to content

Commit 2bb48a5

Browse files
authored
Update to v3 (#34)
1 parent 2371e2a commit 2bb48a5

File tree

86 files changed

+3405
-523
lines changed

Some content is hidden

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

86 files changed

+3405
-523
lines changed

.gitattributes

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
/.gitattributes export-ignore
77
/.github export-ignore
88
/.gitignore export-ignore
9-
/.php-cs-fixer.dist.php export-ignore
10-
/.php_cs.dist export-ignore
119
/bin export-ignore
1210
/docs export-ignore
13-
/phpunit.xml.dist export-ignore
11+
/phpstan.neon.dist export-ignore
1412
/phpunit.xml.dist export-ignore
1513
/pint.json export-ignore
16-
/psalm.xml.dist export-ignore
1714
/tests export-ignore

.github/workflows/larastan.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Larastan
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon.dist'
8+
9+
jobs:
10+
larastan:
11+
name: larastan
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.2'
20+
coverage: none
21+
22+
- name: Install dependencies
23+
uses: ramsey/composer-install@v2
24+
25+
- name: Run Larastan
26+
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/markdown-normalize.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
paths:
66
- "*.md"
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
normalize:
1013
timeout-minutes: 1

.github/workflows/pint.yml

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
11
name: PHP Linting (Pint)
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
branches-ignore:
7-
- 'dependabot/npm_and_yarn/*'
4+
workflow_dispatch:
5+
push:
6+
branches-ignore:
7+
- 'dependabot/npm_and_yarn/*'
8+
9+
permissions:
10+
contents: write
811

912
jobs:
10-
phplint:
11-
runs-on: ubuntu-latest
13+
phplint:
14+
runs-on: ubuntu-latest
1215

13-
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 2
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 2
21+
ref: ${{ github.head_ref }}
1822

19-
- name: Laravel pint
20-
uses: aglipanci/laravel-pint-action@2.3.0
21-
with:
22-
preset: laravel
23+
- name: Laravel pint
24+
uses: aglipanci/laravel-pint-action@2.3.0
25+
with:
26+
preset: laravel
2327

24-
- name: Extract branch name
25-
shell: bash
26-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
27-
id: extract_branch
28+
- name: Extract branch name
29+
shell: bash
30+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
31+
id: extract_branch
2832

29-
- name: Commit Changes
30-
uses: stefanzweifel/git-auto-commit-action@v4
31-
with:
32-
commit_message: PHP Linting (Pint)
33-
branch: ${{ steps.extract_branch.outputs.branch }}
34-
skip_fetch: true
33+
- name: Commit Changes
34+
uses: stefanzweifel/git-auto-commit-action@v4
35+
with:
36+
commit_message: PHP Linting (Pint)
37+
branch: ${{ steps.extract_branch.outputs.branch }}
38+
skip_fetch: true

.github/workflows/run-tests.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,24 @@ name: Tests
22

33
on:
44
push:
5-
paths-ignore:
6-
- '**.md'
7-
pull_request:
8-
paths-ignore:
9-
- '**.md'
5+
paths:
6+
- '**.php'
7+
- 'phpunit.xml.dist'
8+
- '.github/workflows/run-tests.yml'
9+
- 'composer.json'
1010

1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [8.2, 8.1]
18-
laravel: [10.*, 9.*, 8.*,]
17+
php: [8.3, 8.2, 8.1]
18+
laravel: [10.*]
1919
dependency-version: [prefer-lowest, prefer-stable]
2020
include:
2121
- laravel: 10.*
2222
testbench: 8.*
23-
- laravel: 9.*
24-
testbench: 7.*
25-
- laravel: 8.*
26-
testbench: ^6.23
27-
exclude:
28-
- laravel: 8.*
29-
php: 8.2
30-
dependency-version: prefer-lowest
31-
- laravel: 9.*
32-
php: 8.2
33-
dependency-version: prefer-lowest
3423

3524
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
3625

@@ -59,4 +48,4 @@ jobs:
5948
run: composer show -D
6049

6150
- name: Execute tests
62-
run: vendor/bin/pest -p
51+
run: vendor/bin/pest --stop-on-failure --parallel --display-skipped

.github/workflows/stale.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.idea
2+
.php-cs-fixer.cache
23
.php_cs
34
.php_cs.cache
4-
.php-cs-fixer.cache
55
.phpunit.result.cache
66
build
77
composer.lock

CHANGELOG.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,93 +6,93 @@ All notable changes to `laravel-settings` will be documented in this file
66

77
### What's Changed
88

9-
- Bump creyD/prettier_action from 4.2 to 4.3 by @dependabot in https://github.com/rawilk/laravel-settings/pull/15
10-
- Bump aglipanci/laravel-pint-action from 2.1.0 to 2.2.0 by @dependabot in https://github.com/rawilk/laravel-settings/pull/17
11-
- Add Laravel 10.x Support by @rawilk in https://github.com/rawilk/laravel-settings/pull/18
12-
- Add Php 8.2 compatibility by @rawilk in https://github.com/rawilk/laravel-settings/pull/19
9+
- Bump creyD/prettier_action from 4.2 to 4.3 by @dependabot in https://github.com/rawilk/laravel-settings/pull/15
10+
- Bump aglipanci/laravel-pint-action from 2.1.0 to 2.2.0 by @dependabot in https://github.com/rawilk/laravel-settings/pull/17
11+
- Add Laravel 10.x Support by @rawilk in https://github.com/rawilk/laravel-settings/pull/18
12+
- Add Php 8.2 compatibility by @rawilk in https://github.com/rawilk/laravel-settings/pull/19
1313

1414
**Full Changelog**: https://github.com/rawilk/laravel-settings/compare/v2.2.1...v2.2.2
1515

1616
## v2.2.1 - 2023-02-07
1717

1818
### What's Changed
1919

20-
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in https://github.com/rawilk/laravel-settings/pull/13
21-
- Bump aglipanci/laravel-pint-action from 1.0.0 to 2.1.0 by @dependabot in https://github.com/rawilk/laravel-settings/pull/10
22-
- Improve internal handling of the Context object on Settings service class
23-
- Prevent decryption errors when checking if a value should be persisted or not on `set()`
20+
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in https://github.com/rawilk/laravel-settings/pull/13
21+
- Bump aglipanci/laravel-pint-action from 1.0.0 to 2.1.0 by @dependabot in https://github.com/rawilk/laravel-settings/pull/10
22+
- Improve internal handling of the Context object on Settings service class
23+
- Prevent decryption errors when checking if a value should be persisted or not on `set()`
2424

2525
**Full Changelog**: https://github.com/rawilk/laravel-settings/compare/v2.2.0...v2.2.1
2626

2727
## v2.2.0 - 2022-12-07
2828

2929
### What's Changed
3030

31-
- Allow cache to be temporarily disabled (via `temporarilyDisableCache()`)
31+
- Allow cache to be temporarily disabled (via `temporarilyDisableCache()`)
3232

3333
**Full Changelog**: https://github.com/rawilk/laravel-settings/compare/v2.1.1...v2.2.0
3434

3535
## v2.1.1 - 2022-12-06
3636

3737
### What's Changed
3838

39-
- Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 by @dependabot in https://github.com/rawilk/laravel-settings/pull/8
40-
- Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/rawilk/laravel-settings/pull/9
41-
- Prevent non-strings from being unserialized or decrypted
39+
- Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 by @dependabot in https://github.com/rawilk/laravel-settings/pull/8
40+
- Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/rawilk/laravel-settings/pull/9
41+
- Prevent non-strings from being unserialized or decrypted
4242

4343
**Full Changelog**: https://github.com/rawilk/laravel-settings/compare/v2.1.0...v2.1.1
4444

4545
## v2.1.0 - 2022-11-01
4646

4747
### Added
4848

49-
- Feature: model settings by @rawilk in https://github.com/rawilk/laravel-settings/pull/7
49+
- Feature: model settings by @rawilk in https://github.com/rawilk/laravel-settings/pull/7
5050

5151
### Changed
5252

53-
- Composer: Update doctrine/dbal requirement from ^2.12 to ^3.5 by @dependabot in https://github.com/rawilk/laravel-settings/pull/5
54-
- Bump creyD/prettier_action from 3.0 to 4.2 by @dependabot in https://github.com/rawilk/laravel-settings/pull/6
55-
- Drop official PHP 8.0 support
53+
- Composer: Update doctrine/dbal requirement from ^2.12 to ^3.5 by @dependabot in https://github.com/rawilk/laravel-settings/pull/5
54+
- Bump creyD/prettier_action from 3.0 to 4.2 by @dependabot in https://github.com/rawilk/laravel-settings/pull/6
55+
- Drop official PHP 8.0 support
5656

5757
**Full Changelog**: https://github.com/rawilk/laravel-settings/compare/v2.0.1...v2.1.0
5858

5959
## 2.0.1 - 2022-02-23
6060

6161
### Updated
6262

63-
- Add support for Laravel 9.*
64-
- Add support for PHP 8.1
63+
- Add support for Laravel 9.\*
64+
- Add support for PHP 8.1
6565

6666
## 2.0.0 - 2020-12-01
6767

6868
### Breaking Changes
6969

70-
- Drop support for Laravel v6 and v7
71-
- Drop support for php 7
70+
- Drop support for Laravel v6 and v7
71+
- Drop support for php 7
7272

7373
### Updated
7474

75-
- Add support for php 8
76-
- Update some of code base to use php 8 features
75+
- Add support for php 8
76+
- Update some of code base to use php 8 features
7777

7878
## 1.0.3 - 2020-10-26
7979

8080
### Fixed
8181

82-
- Fix bug with context being reset when saving ([#3](https://github.com/rawilk/laravel-settings/issues/3))
82+
- Fix bug with context being reset when saving ([#3](https://github.com/rawilk/laravel-settings/issues/3))
8383

8484
## 1.0.2 - 2020-10-09
8585

8686
### Fixed
8787

88-
- Wrap decrypting values in a try/catch to help prevent decryption errors when caching is used - [#2](https://github.com/rawilk/laravel-settings/issues/2)
88+
- Wrap decrypting values in a try/catch to help prevent decryption errors when caching is used - [#2](https://github.com/rawilk/laravel-settings/issues/2)
8989

9090
## 1.0.1 - 2020-09-09
9191

9292
### Added
9393

94-
- Add support for Laravel 8
94+
- Add support for Laravel 8
9595

9696
## 1.0.0 - 2020-08-02
9797

98-
- initial release
98+
- initial release

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ If you discover any security related issues, please email randall@randallwilk.de
7676
- [Randall Wilk](https://github.com/rawilk)
7777
- [All Contributors](../../contributors)
7878

79+
## Alternatives
80+
81+
- [spatie/laravel-settings](https://github.com/spatie/laravel-settings)
82+
7983
## Disclaimer
8084

8185
This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

composer.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,18 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^8.0|^8.1|^8.2",
23-
"illuminate/database": "^8.0|^9.0|^10.0",
24-
"illuminate/support": "^8.0|^9.0|^10.0",
25-
"spatie/laravel-package-tools": "^1.2|^1.13"
22+
"php": "^8.1|^8.2|^8.3",
23+
"illuminate/database": "^10.0",
24+
"illuminate/support": "^10.0",
25+
"spatie/laravel-package-tools": "^1.13"
2626
},
2727
"require-dev": {
28-
"doctrine/dbal": "^3.5",
2928
"laravel/pint": "^1.2",
30-
"mockery/mockery": "^1.4.2",
31-
"orchestra/testbench": "^6.5|^7.0|^8.0",
32-
"pestphp/pest": "^1.22",
33-
"pestphp/pest-plugin-laravel": "^1.3",
34-
"pestphp/pest-plugin-parallel": "^1.0|^1.2",
35-
"phpunit/phpunit": "^9.4",
36-
"spatie/laravel-ray": "^1.0|^1.31"
29+
"nunomaduro/larastan": "^2.6",
30+
"orchestra/testbench": "^8.0",
31+
"pestphp/pest": "^2.10",
32+
"pestphp/pest-plugin-laravel": "^2.2",
33+
"spatie/laravel-ray": "^1.31"
3734
},
3835
"autoload": {
3936
"psr-4": {
@@ -52,8 +49,9 @@
5249
"post-autoload-dump": [
5350
"@php ./vendor/bin/testbench package:discover --ansi"
5451
],
52+
"analyse": "vendor/bin/phpstan analyse",
5553
"test": "vendor/bin/pest -p",
56-
"format": "vendor/bin/pint"
54+
"format": "vendor/bin/pint --dirty"
5755
},
5856
"config": {
5957
"sort-packages": true,

0 commit comments

Comments
 (0)