You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
This doesn't seem to matter for bool. However, if the return is array, prefixing it with a backslash causes the interpreter to freak out and nothing after that line is interpreted by the IDE. The error messages my IDE throw are: "Method should either have body or be abstract" and "Unexpected: array".
It looks like the return typehints that are primitive values (
bool
,array
,string
, etc.) are being handled like they need a namespace. For example:or
This doesn't seem to matter for
bool
. However, if the return isarray
, prefixing it with a backslash causes the interpreter to freak out and nothing after that line is interpreted by the IDE. The error messages my IDE throw are: "Method should either have body or be abstract" and "Unexpected: array".To reproduce, create a new Laravel app and install your package and Spatie's Collection Macros:
Check line 72 of
_ide_macros.php
.The text was updated successfully, but these errors were encountered: