Skip to content

Commit bf3c801

Browse files
committed
chore(sa): update stub file
1 parent b89b65a commit bf3c801

File tree

3 files changed

+43
-18
lines changed

3 files changed

+43
-18
lines changed

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,6 @@ public function clearEmails(): void
231231
$this->emails = [];
232232
}
233233

234-
/**
235-
* @internal
236-
*/
237-
public function getComponent(string $name): object|null
238-
{
239-
$app = $this->getApplication();
240-
$result = $app->get($name, false);
241-
if (! isset($result)) {
242-
throw new ConfigurationException("Component $name is not available in current application");
243-
}
244-
return $result;
245-
}
246-
247234
/**
248235
* Getting domain regex from rule host template
249236
*/

src/Codeception/Lib/Connector/Yii2/ConnectionWatcher.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
/**
1414
* Class ConnectionWatcher
1515
* This class will watch for new database connection and store a reference to the connection object.
16-
*
17-
* @package Codeception\Lib\Connector\Yii2
16+
* @internal
1817
*/
19-
final class ConnectionWatcher
18+
class ConnectionWatcher
2019
{
21-
private Closure $handler;
20+
private readonly Closure $handler;
2221

2322
/**
24-
* @var Connection[]
23+
* @var list<Connection>
2524
*/
2625
private array $connections = [];
2726

tests/Yii.stub

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,45 @@ namespace yii\web {
3333
* @return void
3434
*/
3535
public function setBaseUrl($url) {}
36+
37+
/**
38+
* @param array<mixed>|object|null $params
39+
*/
40+
public function setBodyParams($params): void {}
41+
42+
/**
43+
* @param list<string>|null $params
44+
*/
45+
public function setAcceptableContentTypes($params): void {}
46+
/**
47+
* @param list<string>|null $params
48+
*/
49+
public function setAcceptableLanguages($params): void {}
50+
51+
/**
52+
* @param string|null $body
53+
*/
54+
public function setRawBody($body): void {}
55+
56+
/**
57+
* @param string|null $path
58+
*/
59+
public function setPathInfo($path): void {}
60+
61+
/**
62+
* @param string|null $path
63+
*/
64+
public function setScriptUrl($path): void {}
65+
66+
/**
67+
* @param string|null $path
68+
*/
69+
public function setUrl($path): void {}
70+
71+
/**
72+
* @param string|null $path
73+
*/
74+
public function setScriptFile($path): void {}
3675
}
3776

3877
}

0 commit comments

Comments
 (0)