-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
[AutoImport] Handle multiple @\ after GenericTagValueNode #5277
Conversation
0fbed18
to
0c7557f
Compare
d2e3928
to
c023cba
Compare
Closing for now as currently skipped. |
c023cba
to
8440d55
Compare
Re-open, handled with set attribute to marking |
@@ -22,7 +22,7 @@ public function __toString(): string | |||
{ | |||
$value = ''; | |||
|
|||
if ($this->key !== null) { | |||
if ($this->key !== null && ! is_numeric($this->key)) { |
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 is required as the __toString()
cause invalid change 0=@OA
conversion on generic:
* @OA\Property(
* type="array",
* @OA\Items(ref=@Model(type=TestItem::class))
* )
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 with other usage with is_int($key)
to make consistent at PR:
class TwoRoutesAfterGeneric | ||
{ | ||
/** | ||
* @OA\Property(type="array", @OA\Items(ref=@Model(type=TestItem::class))) |
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 become single line due to require re-print after it changed after.
All checks have passed 🎉 @TomasVotruba I am merging it to have faster feedback ot test ;) |
@TomasVotruba continue of PR:
this handle multiple
@\
afterGenericTagValueNode