Skip to content

Commit 1171828

Browse files
committed
support for new validator 0.7
1 parent 15886b6 commit 1171828

File tree

5 files changed

+20
-9
lines changed

5 files changed

+20
-9
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: tools/phpunit test/ --bootstrap vendor/autoload.php
3838

3939
php83a:
40-
name: "php 8.3, validator 0.5, laravel 10"
40+
name: "php 8.3, validator 0.6, laravel 10"
4141
runs-on: ubuntu-latest
4242
container: "nofutur3/php-tests:8.3"
4343
services:
@@ -54,10 +54,10 @@ jobs:
5454
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
5555

5656
- name: Install dependencies
57-
run: composer update --no-interaction --with simple-as-fuck/php-validator:^0.5.0 --with illuminate/support:^10.0
57+
run: composer update --no-interaction --with simple-as-fuck/php-validator:^0.6.0 --with illuminate/support:^10.0
5858

5959
- name: Run static analysis
60-
run: vendor/bin/phpstan analyse --memory-limit=-1 --configuration=phpstan-validator-0.5.neon.dist
60+
run: vendor/bin/phpstan analyse --memory-limit=-1 --configuration=phpstan-laravel-10.neon.dist
6161

6262
- name: Run tests
6363
run: tools/phpunit test/ --bootstrap vendor/autoload.php
@@ -89,7 +89,7 @@ jobs:
8989
run: tools/phpunit test/ --bootstrap vendor/autoload.php
9090

9191
php82a:
92-
name: "php 8.2, laravel 9, PSR log 2, symfony 6"
92+
name: "php 8.2, laravel 9, PSR log 2, symfony 6, validator 0.5"
9393
runs-on: ubuntu-latest
9494
container: "nofutur3/php-tests:8.2"
9595
services:
@@ -106,10 +106,10 @@ jobs:
106106
run: phive install --trust-gpg-keys E82B2FB314E9906E,4AA394086372C20A
107107

108108
- name: Install dependencies
109-
run: composer update --no-interaction --with illuminate/support:^9.0 --with psr/log:^2.0 --with symfony/http-foundation:^6.0 --with symfony/http-kernel:^6.0 --with symfony/psr-http-message-bridge:^6.0
109+
run: composer update --no-interaction --with illuminate/support:^9.0 --with psr/log:^2.0 --with symfony/http-foundation:^6.0 --with symfony/http-kernel:^6.0 --with symfony/psr-http-message-bridge:^6.0 --with simple-as-fuck/php-validator:^0.5.2
110110

111111
- name: Run static analysis
112-
run: vendor/bin/phpstan analyse --memory-limit=-1
112+
run: vendor/bin/phpstan analyse --memory-limit=-1 --configuration=phpstan-validator-0.5.neon.dist
113113

114114
- name: Run tests
115115
run: tools/phpunit test/ --bootstrap vendor/autoload.php
@@ -132,7 +132,7 @@ jobs:
132132
run: composer install --no-interaction
133133

134134
- name: Run static analysis
135-
run: vendor/bin/phpstan analyse --memory-limit=-1
135+
run: vendor/bin/phpstan analyse --memory-limit=-1 --configuration=phpstan-laravel-10.neon.dist
136136

137137
- name: Run tests
138138
run: vendor/bin/phpunit test/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
tools
22
vendor
33
composer.lock
4+
test.php

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"psr/http-message": "^1.0",
77
"psr/http-factory": "^1.0",
88
"psr/http-server-handler": "^1.0",
9-
"simple-as-fuck/php-validator": "^0.5.2|^0.6.0",
9+
"simple-as-fuck/php-validator": "^0.5.2|^0.6.0|^0.7.0",
1010
"guzzlehttp/guzzle": "^7.4",
1111
"illuminate/bus": "^8.81|^9.0|^10.0|^11.0",
1212
"illuminate/database": "^8.81|^9.0|^10.0|^11.0",

phpstan-laravel-10.neon.dist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
includes:
2+
- phpstan.neon.dist
3+
4+
parameters:
5+
ignoreErrors:
6+
- '#Cannot access property \$id on mixed#'
7+
- '#Cannot access property \$webhookId on mixed#'

phpstan-validator-0.5.neon.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ parameters:
77
- '#Call to deprecated method string\(\) of class SimpleAsFuck\\Validator\\Rule\\Object\\Property#'
88
- '#Call to deprecated method make\(\) of class SimpleAsFuck\\Validator\\Rule\\String\\StringRule#'
99
- '#Call to deprecated method string\(\) of class SimpleAsFuck\\Validator\\Rule\\ArrayRule\\TypedKey#'
10-
- '#Call to deprecated method string\(\) of class SimpleAsFuck\\Validator\\Rule\\ArrayRule\\StringTypedKey#'
10+
- '#Call to deprecated method string\(\) of class SimpleAsFuck\\Validator\\Rule\\ArrayRule\\StringTypedKey#'
11+
12+
- '#Cannot access property \$id on mixed#'
13+
- '#Cannot access property \$webhookId on mixed#'

0 commit comments

Comments
 (0)