-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Conversation
@@ -110,6 +110,7 @@ public function getRole($objectOrName) | |||
|
|||
$it = new RecursiveIteratorIterator($this, RecursiveIteratorIterator::CHILD_FIRST); | |||
foreach ($it as $leaf) { | |||
/* @var RoleInterface $leaf */ |
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 IDE autocomplete
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 that is suppose to be /** @var RoleInterface $leaf */
when used inline, at least that i how PHPStorm does it.
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 use PHPStorm and it actually use /**
.
But it also understand /*
and since Eclipse seems to prefer this last syntax, i thought it would be better.
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.
Really I prefer Docblock comment block syntax since @var
is traditionally used in docblocks.
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.
Anyway this detail is not enough for do a change (even do a PR for this things)
@@ -127,6 +128,7 @@ public function getRole($objectOrName) | |||
* @param RoleInterface|string $role | |||
* @param string $permission | |||
* @param AssertionInterface|Callable|null $assert |
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.
You missed 1 more space to align with the @throws Exception\InvalidArgumentException
as well :)
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.
👽 A little bit fussy on this one ! ^^
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.
Well, your PR aims to fix docblock 😄
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.
@danizord Alignment is not a valid reason for change a PR.
update docblock documentation