Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-worman committed Dec 17, 2022
1 parent 30a8f71 commit 2f677f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/plugins/PreventFloatAssignmentChecker.php
Expand Up @@ -16,6 +16,8 @@ class PreventFloatAssignmentChecker implements AfterExpressionAnalysisInterface
{
/**
* Called after an expression has been checked
*
* @return null
*/
public static function afterExpressionAnalysis(AfterExpressionAnalysisEvent $event): ?bool {
$expr = $event->getExpr();
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php
Expand Up @@ -387,7 +387,7 @@ public function analyze(
if ($overridden_storage->allow_named_arg_calls) {
IssueBuffer::maybeAdd(new MethodSignatureMismatch(
'Method ' . (string) $method_id . ' should accept named arguments '
. ' as ' . (string) $overridden_method_id . ' does',
. ' as ' . (string) $overridden_method_id . ' does',
$storage->location
));
}
Expand Down
4 changes: 2 additions & 2 deletions src/Psalm/Internal/Codebase/ClassLikes.php
Expand Up @@ -1816,8 +1816,8 @@ private function checkMethodReferences(ClassLikeStorage $classlike_storage, Meth
$issue,
$method_storage->suppressed_issues,
$method_storage->stmt_location
&& !$declaring_classlike_storage->is_trait
&& !$has_variable_calls
&& !$declaring_classlike_storage->is_trait
&& !$has_variable_calls
);
}
}
Expand Down

0 comments on commit 2f677f6

Please sign in to comment.