Skip to content

Commit baafaeb

Browse files
authored
Merge pull request #337 from dereuromark/phpstan
Fix up PHPStan
2 parents 33d8f43 + a45436c commit baafaeb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ parameters:
1111
bootstrapFiles:
1212
- tests/bootstrap.php
1313
- tests/shim.php
14-
checkGenericClassInNonGenericObjectType: false
1514
ignoreErrors:
1615
- '#Unsafe usage of new static\(\).+#'
1716
- '#Parameter \#1 \$object of function get_class expects object, object\|string given.#'

src/Annotator/ModelAnnotator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ protected function getAssociations(AssociationCollection $tableAssociations): ar
283283
continue;
284284
}
285285

286-
/** @var \Cake\ORM\Association\BelongsToMany $association */
286+
/** @var \Cake\ORM\Association\BelongsToMany<\Cake\ORM\Table> $association */
287287
$through = $this->throughAlias($association);
288288
if (!$through) {
289289
continue;
@@ -306,7 +306,7 @@ protected function getAssociations(AssociationCollection $tableAssociations): ar
306306
}
307307

308308
/**
309-
* @param \Cake\ORM\Association\BelongsToMany $association
309+
* @param \Cake\ORM\Association\BelongsToMany<\Cake\ORM\Table> $association
310310
* @return string
311311
*/
312312
protected function throughAlias(BelongsToMany $association): string {
@@ -328,7 +328,7 @@ protected function throughAlias(BelongsToMany $association): string {
328328
/**
329329
* @uses \Cake\ORM\Association\BelongsToMany::_junctionTableName()
330330
*
331-
* @param \Cake\ORM\Association\BelongsToMany $association
331+
* @param \Cake\ORM\Association\BelongsToMany<\Cake\ORM\Table> $association
332332
* @return string
333333
*/
334334
protected function junctionTableName(BelongsToMany $association): string {

0 commit comments

Comments
 (0)