-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add a rule that requires to use $ReadOnlyArray instead of Array #236
Comments
@gajus I am working on this. And I have basically three questions:
|
Yes. Regardless of whether the array contains primitive data or not, it is mutable. There is no short-hand syntax for non-mutable array.
I cannot think of any exceptions. It should always require to use
All generic pro-immutable data arguments apply, e.g.
|
Rule must warn when
Array
is used instead of$ReadOnlyArray
.The text was updated successfully, but these errors were encountered: