-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#.0.x] - fixing docblock for autocompletion
- Loading branch information
Showing
1 changed file
with
41 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0129658
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 think the methods below return an object, not a string.
doctype
input*
link
meta
ol
scripts
style
title
ul
If these are wrong, shouldn't the stub be generated wrong too?
0129658
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 stubs it should not matter since the stubs parses the methods and their return types. The docblock above is for PHPStorm and other editors. We can fix that shortly. Thank you
0129658
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 love PhpStorm, so I would be happy if it was improved.
0129658
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 latest version has the docblock corrected. The same with the stubs.
0129658
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've seen the update, but I have a question.
For example for title():
Isn't this
Helper\Title
instead ofTitle
?In the case of
Titel
, it is not possible to jump because it cannot find the definition part, but if it isHelper\Title
, PhpStorm can find the definition and jump to it.0129658
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.
Thank you @s-ohnishi. You are correct. I added the relevant
use
references and corrected the spelling ofStyle
.Do a
composer update
and the ide-stubs 5.1.3 have the correct functionality.0129658
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.
updated.
I confirmed that I can jump without problems on PhpStorm.
Thank you very much.