[11.x] Removing unused var assignment in Illuminate Router#53575
[11.x] Removing unused var assignment in Illuminate Router#53575taylorotwell merged 2 commits intolaravel:11.xfrom Carnicero90:11.x
Conversation
|
@Carnicero90 It was meant to help with readability. I think it came from the days when there were no named arguments in PHP. nowadays it should be: $route->setAction($this->mergeWithLastGroup(
$route->getAction(),
prependExistingPrefix: false,
)); |
|
Aaah, I see. Here you go. |
Reference: https://laravel.com/docs/11.x/releases#named-arguments |
Seems to be more of a user guide though. Still, it doesnt matter all that much, since this is a pretty useless pr overall. |
It won't benefit any end user, it can't break any existing feature since the variable was unused, it doesn't make building applications easier: I just noticed that while debugging some stuff in the vendor of my application.