Skip to content

Commit e2ac94a

Browse files
committed
docs: update @var types
1 parent 9bf27a1 commit e2ac94a

File tree

2 files changed

+12
-132
lines changed

2 files changed

+12
-132
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -261,66 +261,6 @@
261261
'count' => 1,
262262
'path' => __DIR__ . '/system/BaseModel.php',
263263
];
264-
$ignoreErrors[] = [
265-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$afterDelete type has no value type specified in iterable type array\\.$#',
266-
'count' => 1,
267-
'path' => __DIR__ . '/system/BaseModel.php',
268-
];
269-
$ignoreErrors[] = [
270-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$afterFind type has no value type specified in iterable type array\\.$#',
271-
'count' => 1,
272-
'path' => __DIR__ . '/system/BaseModel.php',
273-
];
274-
$ignoreErrors[] = [
275-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$afterInsert type has no value type specified in iterable type array\\.$#',
276-
'count' => 1,
277-
'path' => __DIR__ . '/system/BaseModel.php',
278-
];
279-
$ignoreErrors[] = [
280-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$afterInsertBatch type has no value type specified in iterable type array\\.$#',
281-
'count' => 1,
282-
'path' => __DIR__ . '/system/BaseModel.php',
283-
];
284-
$ignoreErrors[] = [
285-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$afterUpdate type has no value type specified in iterable type array\\.$#',
286-
'count' => 1,
287-
'path' => __DIR__ . '/system/BaseModel.php',
288-
];
289-
$ignoreErrors[] = [
290-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$afterUpdateBatch type has no value type specified in iterable type array\\.$#',
291-
'count' => 1,
292-
'path' => __DIR__ . '/system/BaseModel.php',
293-
];
294-
$ignoreErrors[] = [
295-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$beforeDelete type has no value type specified in iterable type array\\.$#',
296-
'count' => 1,
297-
'path' => __DIR__ . '/system/BaseModel.php',
298-
];
299-
$ignoreErrors[] = [
300-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$beforeFind type has no value type specified in iterable type array\\.$#',
301-
'count' => 1,
302-
'path' => __DIR__ . '/system/BaseModel.php',
303-
];
304-
$ignoreErrors[] = [
305-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$beforeInsert type has no value type specified in iterable type array\\.$#',
306-
'count' => 1,
307-
'path' => __DIR__ . '/system/BaseModel.php',
308-
];
309-
$ignoreErrors[] = [
310-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$beforeInsertBatch type has no value type specified in iterable type array\\.$#',
311-
'count' => 1,
312-
'path' => __DIR__ . '/system/BaseModel.php',
313-
];
314-
$ignoreErrors[] = [
315-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$beforeUpdate type has no value type specified in iterable type array\\.$#',
316-
'count' => 1,
317-
'path' => __DIR__ . '/system/BaseModel.php',
318-
];
319-
$ignoreErrors[] = [
320-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$beforeUpdateBatch type has no value type specified in iterable type array\\.$#',
321-
'count' => 1,
322-
'path' => __DIR__ . '/system/BaseModel.php',
323-
];
324264
$ignoreErrors[] = [
325265
'message' => '#^Strict comparison using \\!\\=\\= between mixed and null will always evaluate to true\\.$#',
326266
'count' => 1,
@@ -11281,71 +11221,11 @@
1128111221
'count' => 1,
1128211222
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
1128311223
];
11284-
$ignoreErrors[] = [
11285-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$afterDelete type has no value type specified in iterable type array\\.$#',
11286-
'count' => 1,
11287-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11288-
];
11289-
$ignoreErrors[] = [
11290-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$afterFind type has no value type specified in iterable type array\\.$#',
11291-
'count' => 1,
11292-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11293-
];
11294-
$ignoreErrors[] = [
11295-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$afterInsert type has no value type specified in iterable type array\\.$#',
11296-
'count' => 1,
11297-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11298-
];
11299-
$ignoreErrors[] = [
11300-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$afterInsertBatch type has no value type specified in iterable type array\\.$#',
11301-
'count' => 1,
11302-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11303-
];
11304-
$ignoreErrors[] = [
11305-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$afterUpdate type has no value type specified in iterable type array\\.$#',
11306-
'count' => 1,
11307-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11308-
];
11309-
$ignoreErrors[] = [
11310-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$afterUpdateBatch type has no value type specified in iterable type array\\.$#',
11311-
'count' => 1,
11312-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11313-
];
11314-
$ignoreErrors[] = [
11315-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$beforeDelete type has no value type specified in iterable type array\\.$#',
11316-
'count' => 1,
11317-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11318-
];
11319-
$ignoreErrors[] = [
11320-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$beforeFind type has no value type specified in iterable type array\\.$#',
11321-
'count' => 1,
11322-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11323-
];
1132411224
$ignoreErrors[] = [
1132511225
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$beforeFindReturnData has no type specified\\.$#',
1132611226
'count' => 1,
1132711227
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
1132811228
];
11329-
$ignoreErrors[] = [
11330-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$beforeInsert type has no value type specified in iterable type array\\.$#',
11331-
'count' => 1,
11332-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11333-
];
11334-
$ignoreErrors[] = [
11335-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$beforeInsertBatch type has no value type specified in iterable type array\\.$#',
11336-
'count' => 1,
11337-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11338-
];
11339-
$ignoreErrors[] = [
11340-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$beforeUpdate type has no value type specified in iterable type array\\.$#',
11341-
'count' => 1,
11342-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11343-
];
11344-
$ignoreErrors[] = [
11345-
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$beforeUpdateBatch type has no value type specified in iterable type array\\.$#',
11346-
'count' => 1,
11347-
'path' => __DIR__ . '/tests/_support/Models/EventModel.php',
11348-
];
1134911229
$ignoreErrors[] = [
1135011230
'message' => '#^Property Tests\\\\Support\\\\Models\\\\EventModel\\:\\:\\$eventData has no type specified\\.$#',
1135111231
'count' => 1,

system/BaseModel.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -246,84 +246,84 @@ abstract class BaseModel
246246
/**
247247
* Callbacks for beforeInsert
248248
*
249-
* @var array
249+
* @var list<string>
250250
*/
251251
protected $beforeInsert = [];
252252

253253
/**
254254
* Callbacks for afterInsert
255255
*
256-
* @var array
256+
* @var list<string>
257257
*/
258258
protected $afterInsert = [];
259259

260260
/**
261261
* Callbacks for beforeUpdate
262262
*
263-
* @var array
263+
* @var list<string>
264264
*/
265265
protected $beforeUpdate = [];
266266

267267
/**
268268
* Callbacks for afterUpdate
269269
*
270-
* @var array
270+
* @var list<string>
271271
*/
272272
protected $afterUpdate = [];
273273

274274
/**
275275
* Callbacks for beforeInsertBatch
276276
*
277-
* @var array
277+
* @var list<string>
278278
*/
279279
protected $beforeInsertBatch = [];
280280

281281
/**
282282
* Callbacks for afterInsertBatch
283283
*
284-
* @var array
284+
* @var list<string>
285285
*/
286286
protected $afterInsertBatch = [];
287287

288288
/**
289289
* Callbacks for beforeUpdateBatch
290290
*
291-
* @var array
291+
* @var list<string>
292292
*/
293293
protected $beforeUpdateBatch = [];
294294

295295
/**
296296
* Callbacks for afterUpdateBatch
297297
*
298-
* @var array
298+
* @var list<string>
299299
*/
300300
protected $afterUpdateBatch = [];
301301

302302
/**
303303
* Callbacks for beforeFind
304304
*
305-
* @var array
305+
* @var list<string>
306306
*/
307307
protected $beforeFind = [];
308308

309309
/**
310310
* Callbacks for afterFind
311311
*
312-
* @var array
312+
* @var list<string>
313313
*/
314314
protected $afterFind = [];
315315

316316
/**
317317
* Callbacks for beforeDelete
318318
*
319-
* @var array
319+
* @var list<string>
320320
*/
321321
protected $beforeDelete = [];
322322

323323
/**
324324
* Callbacks for afterDelete
325325
*
326-
* @var array
326+
* @var list<string>
327327
*/
328328
protected $afterDelete = [];
329329

0 commit comments

Comments
 (0)