-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #4762 Rename simple_lambda_call to regular_callable_call (julie…
…nfalque) This PR was merged into the 2.17-dev branch. Discussion ---------- Rename simple_lambda_call to regular_callable_call Reasoning: * not all callables are lambdas; * _simple_ is confusing IMO. Commits ------- 204eb15 Rename simple_lambda_call to regular_callable_call
- Loading branch information
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,15 +25,15 @@ | |
/** | ||
* @author Dariusz Rumiński <[email protected]> | ||
*/ | ||
final class SimpleLambdaCallFixer extends AbstractFixer | ||
final class RegularCallableCallFixer extends AbstractFixer | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getDefinition() | ||
{ | ||
return new FixerDefinition( | ||
'Calling lambdas without using `call_user_func*`, when possible.', | ||
'Callables must be called without using `call_user_func*` when possible.', | ||
[ | ||
new CodeSample( | ||
'<?php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters