-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: fix phpstan ignored errors in app/ and admin/starter/tests/ #8645
docs: fix phpstan ignored errors in app/ and admin/starter/tests/ #8645
Conversation
app/Config/Logger.php
Outdated
@@ -72,6 +72,8 @@ class Logger extends BaseConfig | |||
* | |||
* Handlers are executed in the order defined in this array, starting with | |||
* the handler on top and continuing down. | |||
* | |||
* @var array<string, array<string, int|list<string>|string>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FileHandler::class
is string or class-string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's class-string
. Fixed.
app/Config/Routing.php
Outdated
@@ -106,7 +108,7 @@ class Routing extends BaseRouting | |||
* 'blog' => 'Acme\Blog\Controllers', | |||
* ] | |||
* | |||
* @var array [ uri_segment => namespace ] | |||
* @var array<string, string> [ uri_segment => namespace ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example(E.g.) is clear to me, I think [ uri_segment => namespace ]
is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
system/Config/Routing.php
Outdated
@@ -104,7 +106,7 @@ class Routing extends BaseConfig | |||
* 'blog' => 'Acme\Blog\Controllers', | |||
* ] | |||
* | |||
* @var array [ uri_segment => namespace ] | |||
* @var array<string, string> [ uri_segment => namespace ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
admin/starter/tests
by PHPStanChecklist: