Skip to content

Commit

Permalink
fix stan Model2
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 31, 2021
1 parent 475987d commit 1c6fb95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ parameters:
- '~^Access to an undefined property Atk4\\Data\\Persistence::\$connection\.$~'
- '~^Call to an undefined method Atk4\\Data\\Persistence::dsql\(\)\.$~'
# for src/Field/SqlExpressionField.php
- '~^Call to an undefined method Atk4\\Data\\Model::expr\(\)\.$~'
- '~^Call to an undefined method Atk4\\Data\\Model2?::expr\(\)\.$~'
# for src/Model.php
- '~^Call to an undefined method Atk4\\Data\\Persistence::update\(\)\.$~'
- '~^Call to an undefined method Atk4\\Data\\Persistence::insert\(\)\.$~'
Expand All @@ -60,7 +60,7 @@ parameters:
- '~^Call to an undefined method Atk4\\Data\\Persistence::initQuery\(\)\.$~'
- '~^Call to an undefined method Atk4\\Data\\Persistence::lastInsertId\(\)\.$~'
# for src/Reference/HasMany.php
- '~^Call to an undefined method Atk4\\Data\\Model::dsql\(\)\.$~'
- '~^Call to an undefined method Atk4\\Data\\Model2?::dsql\(\)\.$~'
# for tests/FieldTest.php
- '~^Call to an undefined method Atk4\\Data\\Reference\\HasOne::addTitle\(\)\.$~'
# for tests/JoinSqlTest.php
Expand Down
2 changes: 1 addition & 1 deletion tests/ConditionSqlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testEntityReloadWithDifferentIdException(): void
$m = $m->tryLoad(1);
$this->assertSame('John', $m->get('name'));
\Closure::bind(function () use ($m) {
$m->_entityId = 2;
$m->_entityId = null ?? 2; // @phpstan-ignore-line https://github.com/phpstan/phpstan-src/pull/706
}, null, Model::class)();
$this->expectException(\Atk4\Data\Exception::class);
$this->expectExceptionMessageMatches('~entity.+different~');
Expand Down

0 comments on commit 1c6fb95

Please sign in to comment.