Skip to content

Commit

Permalink
(ci) fix phpstan (#360)
Browse files Browse the repository at this point in the history
* (ci) fix phpstan

* (ci) fix phpstan

* (fix) PHP urgh
  • Loading branch information
kevincobain2000 authored May 23, 2024
1 parent 1ce62f5 commit 2f4df78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/phplint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
coverage: pcov
extensions: intl, gd, zip, pdo, sqlite, pdo_sqlite, dom, curl, libxml, mbstring, fileinfo, exif, iconv
ini-values: memory_limit=-1,disable_functions="",pcov.exclude="~(vendor|tests|node_modules)~",pcov.directory="./"
php-version: 8.2
php-version: 8.3
tools: composer:v2

- name: Composer Install
Expand Down
1 change: 1 addition & 0 deletions src/LaravelRequestDocs.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ public function rulesByRegex(string $requestClassName, string $methodName): arra
->filter(function ($item) {
return count($item[0]) > 0;
})
// @phpstan-ignore-next-line
->transform(function ($item) {
$fieldName = Str::of($item[0][0])->replace(['"', "'"], '');
$definedFieldRules = collect(array_slice($item[0], 1))->transform(function ($rule) {
Expand Down

0 comments on commit 2f4df78

Please sign in to comment.