Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jul 26, 2021

while porting the cache impl to rector I stumbled over this line - which I think can be simplified.

}

return $cacheItem->getData();
})($key, $variableKey);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of defining a function and immediately invoking it, I wen't with closure-params which feels easier to read for me

@staabm staabm marked this pull request as ready for review July 26, 2021 13:57
@ondrejmirtes ondrejmirtes merged commit 5606520 into phpstan:master Jul 26, 2021
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the patch-1 branch July 26, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants