File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
src/Codeception/Lib/Connector Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 5858 ForbiddenFunctionsSniff::class => [
5959 'tests/** ' ,
6060 'console/** '
61- ]
61+ ],
62+ 'tests/_support/_generated '
6263 ]);
6364
6465 // $ecsConfig->skip([
Original file line number Diff line number Diff line change @@ -222,10 +222,7 @@ public function getInternalDomains(): array
222222 $ domains = [$ this ->getDomainRegex ($ urlManager ->hostInfo )];
223223 if ($ urlManager ->enablePrettyUrl ) {
224224 foreach ($ urlManager ->rules as $ rule ) {
225- /**
226- * @var \yii\web\UrlRule $rule
227- */
228- if ($ rule ->host !== null ) {
225+ if (isset ($ rule ->host )) {
229226 $ domains [] = $ this ->getDomainRegex ($ rule ->host );
230227 }
231228 }
Original file line number Diff line number Diff line change @@ -95,4 +95,12 @@ namespace yii\web {
9595 public function setScriptFile($path): void {}
9696 }
9797
98+ interface UrlRuleInterface{}
99+ class UrlManager {
100+ /**
101+ * @var UrlRuleInterface[] $rules;
102+ */
103+ public array $rules = [];
104+ }
105+
98106}
You can’t perform that action at this time.
0 commit comments