Skip to content

Commit d5eb9a5

Browse files
committed
chore(cs): fix phpstan types
1 parent 83ac70a commit d5eb9a5

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

src/Codeception/Module/Yii2.php

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,7 @@
175175
*
176176
* Maintainer: **samdark**
177177
* Stability: **stable**
178-
* @phpstan-type ClientConfig array{
179-
* responseCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
180-
* requestCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
181-
* mailMethod: Yii2Connector::MAIL_CATCH|Yii2Connector::MAIL_IGNORE|Yii2Connector::MAIL_EVENT_AFTER|Yii2Connector::MAIL_EVENT_BEFORE,
182-
* recreateComponents: list<string>,
183-
* recreateApplication: bool,
184-
* closeSessionOnRecreateApplication: bool,
185-
* applicationClass: class-string<\yii\base\Application>|null,
186-
* configFile: string
187-
* }
178+
*
188179
* @phpstan-type ModuleConfig array{
189180
* configFile: string|null,
190181
* fixturesMethod: string,
@@ -193,7 +184,6 @@
193184
* transaction: bool|null,
194185
* entryScript: string,
195186
* entryUrl: string,
196-
* configFile: string,
197187
* responseCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
198188
* requestCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
199189
* mailMethod: Yii2Connector::MAIL_CATCH|Yii2Connector::MAIL_IGNORE|Yii2Connector::MAIL_EVENT_AFTER|Yii2Connector::MAIL_EVENT_BEFORE,
@@ -202,6 +192,7 @@
202192
* closeSessionOnRecreateApplication: bool,
203193
* applicationClass: class-string<\yii\base\Application>|null
204194
* }
195+
*
205196
* @phpstan-type ClientConfig array{
206197
* configFile: string,
207198
* responseCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
@@ -214,15 +205,9 @@
214205
* }
215206
*
216207
* @phpstan-type ValidConfig (ModuleConfig & array{
217-
* transaction: bool|null,
218-
* configFile: string
219-
* })
220-
* @phpstan-type SessionBackup array{
221-
* cookie: array<mixed>,
222-
* session: array<mixed>,
223-
* headers: array<string, string>,
224-
* clientContext: array{ cookieJar: CookieJar, history: History }
225-
* }
208+
* transaction: bool|null,
209+
* configFile: string
210+
* })
226211
*/
227212
final class Yii2 extends Framework implements ActiveRecord, PartedModule
228213
{

0 commit comments

Comments
 (0)