You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -112,7 +108,7 @@ public function processNode(Node $node, Scope $scope): array
112
108
if ($returnTypeinstanceof NeverType && $returnType->isExplicit()) {
113
109
$errorBuilder = RuleErrorBuilder::message(sprintf('%s should always throw an exception or terminate script execution but doesn\'t do that.', $description))->line($node->getNode()->getStartLine());
114
110
115
-
if ($this->bleedingEdge && $node->hasNativeReturnTypehint()) {
111
+
if ($node->hasNativeReturnTypehint()) {
116
112
$errorBuilder->nonIgnorable();
117
113
}
118
114
@@ -137,7 +133,7 @@ public function processNode(Node $node, Scope $scope): array
137
133
sprintf('%s should return %s but return statement is missing.', $description, $returnType->describe(VerbosityLevel::typeOnly()))
138
134
)->line($node->getNode()->getStartLine());
139
135
140
-
if ($this->bleedingEdge && $node->hasNativeReturnTypehint()) {
0 commit comments