File tree 3 files changed +11
-5
lines changed
src/Codeception/Lib/Connector
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 58
58
ForbiddenFunctionsSniff::class => [
59
59
'tests/** ' ,
60
60
'console/** '
61
- ]
61
+ ],
62
+ 'tests/_support/_generated '
62
63
]);
63
64
64
65
// $ecsConfig->skip([
Original file line number Diff line number Diff line change @@ -222,10 +222,7 @@ public function getInternalDomains(): array
222
222
$ domains = [$ this ->getDomainRegex ($ urlManager ->hostInfo )];
223
223
if ($ urlManager ->enablePrettyUrl ) {
224
224
foreach ($ urlManager ->rules as $ rule ) {
225
- /**
226
- * @var \yii\web\UrlRule $rule
227
- */
228
- if ($ rule ->host !== null ) {
225
+ if (isset ($ rule ->host )) {
229
226
$ domains [] = $ this ->getDomainRegex ($ rule ->host );
230
227
}
231
228
}
Original file line number Diff line number Diff line change @@ -95,4 +95,12 @@ namespace yii\web {
95
95
public function setScriptFile($path): void {}
96
96
}
97
97
98
+ interface UrlRuleInterface{}
99
+ class UrlManager {
100
+ /**
101
+ * @var UrlRuleInterface[] $rules;
102
+ */
103
+ public array $rules = [];
104
+ }
105
+
98
106
}
You can’t perform that action at this time.
0 commit comments