-
Notifications
You must be signed in to change notification settings - Fork 11.4k
[12.x] Improve PHPDoc for the Illuminate\Cache folder files #56028
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
Conversation
@@ -44,6 +44,7 @@ class DatabaseLock extends Lock | |||
* @param int $seconds | |||
* @param string|null $owner | |||
* @param array $lottery | |||
* @param int $defaultTimeoutInSeconds |
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.
Ich gehe mal davon aus, dass die Zahl nicht negativ sein kann:
* @param int $defaultTimeoutInSeconds | |
* @param non-negative-int $defaultTimeoutInSeconds |
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.
I assume that the time can not be negative.
This is better than Duolingo.
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.
Damn, sorry. Wasn't thinking apparently 😅 🤦🏻♂️
@@ -169,6 +170,7 @@ public function put($key, $value, $seconds) | |||
/** | |||
* Store multiple items in the cache for a given number of seconds. | |||
* | |||
* @param array $values | |||
* @param int $seconds |
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.
This probably as well:
* @param int $seconds | |
* @param non-negative-int $seconds |
@@ -108,6 +108,7 @@ public function put($key, $value, $seconds) | |||
/** | |||
* Store multiple items in the cache for a given number of seconds. | |||
* | |||
* @param array $values |
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.
Since prefix()
expects a string
, so this can be reflected here:
* @param array $values | |
* @param array<string, mixed> $values |
This PR has conflicts. |
Conflicts resolved. |
Improved PHPDoc comments in the Illuminate\Cache folder to enhance code readability and IDE support. No functional changes.