-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Fix and improve overall PHPDocs #54489
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ public static function fromString(string $inputStr, int $currentIndex): self | |
* Create an input based on an COMP_WORDS token list. | ||
* | ||
* @param string[] $tokens the set of split tokens (e.g. COMP_WORDS or argv) | ||
* @param $currentIndex the index of the cursor (e.g. COMP_CWORD) | ||
* @param int $currentIndex the index of the cursor (e.g. COMP_CWORD) | ||
Comment on lines
55
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is intended. I think we should rather remove all types everywhere if they duplicate the type defined in PHP (which is almost always the case, except for generic types). See #53363 (comment) But if we do this, we should automate this using Rector or PHP CS Fixer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an interesting point of view. Are we 100% we want to do this? Rector could definitely do the trick with this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes we are :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, I might close this PR in favor of one that removes redundant types as explained by Wouter. Should such PR target 5.4 or 7.1? |
||
*/ | ||
public static function fromTokens(array $tokens, int $currentIndex): self | ||
{ | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -235,8 +235,7 @@ public function format($timestamp) | |||||
/** | ||||||
* Not supported. Formats an object. | ||||||
* | ||||||
* @param mixed $format | ||||||
* @param string $locale | ||||||
* @param mixed $format | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* | ||||||
* @return string The formatted value | ||||||
* | ||||||
|
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.
for consistency with other similar changes: