Skip to content

Commit cf49690

Browse files
authored
Update actions to v3 (#6)
* bump package version * Update actions to v3 * Change return type from mixed * Update abstract
1 parent bf927ef commit cf49690

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
php: [ 7.3, 7.4, 8.0 ]
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121
with:
2222
fetch-depth: 0
2323

@@ -37,15 +37,15 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141
with:
4242
fetch-depth: 0
4343

4444
- name: Release
4545
id: release
4646
uses: justincy/github-action-npm-release@2.0.2
4747

48-
- uses: actions/setup-node@v2
48+
- uses: actions/setup-node@v3
4949
if: steps.release.outputs.released == 'true'
5050
with:
5151
registry-url: https://registry.npmjs.org/
@@ -55,7 +55,7 @@ jobs:
5555
env:
5656
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5757

58-
- uses: actions/setup-node@v2
58+
- uses: actions/setup-node@v3
5959
if: steps.release.outputs.released == 'true'
6060
with:
6161
registry-url: https://npm.pkg.github.com/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@packaged/validate",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"main": "index.js",
55
"repository": "git@github.com:packaged/validate",
66
"author": "Tom Kay <oridan82@gmail.com>",

src/AbstractSerializableValidator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ public static function serializeType(): string
88
return substr(basename(str_replace('\\', '/', static::class)), 0, -9);
99
}
1010

11-
final public function jsonSerialize(): mixed
11+
#[\ReturnTypeWillChange]
12+
final public function jsonSerialize(): array
1213
{
1314
return [
1415
't' => $this::serializeType(),

src/AbstractValidator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public function isValid($value): bool
7272
return true;
7373
}
7474

75-
public function jsonSerialize(): mixed
75+
#[\ReturnTypeWillChange]
76+
public function jsonSerialize(): array
7677
{
7778
return [];
7879
}

0 commit comments

Comments
 (0)