Skip to content

Commit ab5ccc5

Browse files
committed
fix: phpstan types
1 parent d536116 commit ab5ccc5

File tree

1 file changed

+31
-26
lines changed

1 file changed

+31
-26
lines changed

src/Codeception/Module/Yii2.php

+31-26
Original file line numberDiff line numberDiff line change
@@ -179,38 +179,43 @@
179179
*
180180
* Maintainer: **samdark**
181181
* Stability: **stable**
182-
*
182+
* @phpstan-type ClientConfig array{
183+
* responseCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
184+
* requestCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
185+
* mailMethod: Yii2Connector::MAIL_CATCH|Yii2Connector::MAIL_IGNORE|Yii2Connector::MAIL_EVENT_AFTER|Yii2Connector::MAIL_EVENT_BEFORE,
186+
* recreateComponents: list<string>,
187+
* recreateApplication: bool,
188+
* closeSessionOnRecreateApplication: bool,
189+
* applicationClass: class-string<\yii\base\Application>|null,
190+
* configFile: string
191+
* }
183192
* @phpstan-type ModuleConfig array{
184-
* fixturesMethod: string,
185-
* cleanup: bool,
186-
* ignoreCollidingDSN: bool,
187-
* transaction: bool|null,
188-
* entryScript: string,
189-
* entryUrl: string,
190-
* configFile: string|null,
191-
* responseCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
192-
* requestCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
193-
* recreateComponents: list<string>,
194-
* recreateApplication: bool,
195-
* closeSessionOnRecreateApplication: bool,
196-
* mailMethod: Yii2Connector::MAIL_CATCH|Yii2Connector::MAIL_IGNORE|Yii2Connector::MAIL_EVENT_AFTER|Yii2Connector::MAIL_EVENT_BEFORE,
197-
* applicationClass: class-string<\yii\base\Application>|null
193+
* configFile: string|null,
194+
* fixturesMethod: string,
195+
* cleanup: bool,
196+
* ignoreCollidingDSN: bool,
197+
* transaction: bool|null,
198+
* entryScript: string,
199+
* entryUrl: string,
200+
* responseCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
201+
* requestCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
202+
* mailMethod: Yii2Connector::MAIL_CATCH|Yii2Connector::MAIL_IGNORE|Yii2Connector::MAIL_EVENT_AFTER|Yii2Connector::MAIL_EVENT_BEFORE,
203+
* recreateComponents: list<string>,
204+
* recreateApplication: bool,
205+
* closeSessionOnRecreateApplication: bool,
206+
* applicationClass: class-string<\yii\base\Application>|null
198207
* }
199208
*
200209
* @phpstan-type ValidConfig (ModuleConfig & array{
201210
* transaction: bool|null,
202-
* configFile: string,
211+
* configFile: string
203212
* })
204-
* @phpstan-type SessionBackup array{cookie: array<mixed>, session: array<mixed>, headers: array<string, string>, clientContext: array{ cookieJar: CookieJar, history: History }}
205-
* @phpstan-type ClientConfig array{
206-
* configFile: string,
207-
* responseCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
208-
* requestCleanMethod: Yii2Connector::CLEAN_CLEAR|Yii2Connector::CLEAN_MANUAL|Yii2Connector::CLEAN_RECREATE,
209-
* recreateComponents: list<string>,
210-
* recreateApplication: bool,
211-
* closeSessionOnRecreateApplication: bool,
212-
* applicationClass: class-string<\yii\base\Application>|null
213-
* }
213+
* @phpstan-type SessionBackup array{
214+
* cookie: array<mixed>,
215+
* session: array<mixed>,
216+
* headers: array<string, string>,
217+
* clientContext: array{ cookieJar: CookieJar, history: History }
218+
* }
214219
*/
215220
class Yii2 extends Framework implements ActiveRecord, MultiSession, PartedModule
216221
{

0 commit comments

Comments
 (0)