Skip to content

Commit

Permalink
Merge pull request #392 from ergebnis/fix/split
Browse files Browse the repository at this point in the history
Fix: Split condition
  • Loading branch information
localheinz authored Nov 8, 2021
2 parents d86a1d5 + fdc53d8 commit 998cd88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on: # yamllint disable-line rule:truthy

env:
MIN_COVERED_MSI: 92
MIN_MSI: 83
MIN_MSI: 82
PHP_EXTENSIONS: "mbstring"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MIN_COVERED_MSI:=92
MIN_MSI:=83
MIN_MSI:=82

.PHONY: it
it: coding-standards static-code-analysis tests ## Runs the coding-standards, static-code-analysis, and tests targets
Expand Down
6 changes: 5 additions & 1 deletion src/Functions/NoNullableReturnTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public function processNode(
));
}

if (!isset($node->namespacedName) || !$node->getReturnType() instanceof Node\NullableType) {
if (!isset($node->namespacedName)) {
return [];
}

if (!$node->getReturnType() instanceof Node\NullableType) {
return [];
}

Expand Down

0 comments on commit 998cd88

Please sign in to comment.