Remove @len() and Migrate Logic Into $len()
Now that we have support for providing expressions to methods, the $len()
method should be made more versatile. If an array is passed into it, return the number of elements in the array. Once that's done, there's no longer a need for @len()
.