Skip to content

Commit

Permalink
fix phpstan problems
Browse files Browse the repository at this point in the history
  • Loading branch information
jkavalik committed Oct 8, 2024
1 parent 2211b54 commit fbcba0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cases/integration/Entity/entity.compositePK.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class EntityCompositePKTest extends DataTestCase
$this->orm->clear();

$res = $this->orm->userStatsX->getBy(['date' => new DateTime('2019-01-01')]);
Assert::notNull($res);
Assert::same(100, $res->value);

$res->value = 200;
Expand All @@ -86,6 +87,7 @@ class EntityCompositePKTest extends DataTestCase
$this->orm->clear();

$res = $this->orm->userStatsX->getBy(['date' => new DateTime('2019-01-01')]);
Assert::notNull($res);
Assert::same(200, $res->value);

Environment::$checkAssertions = false;
Expand Down
3 changes: 3 additions & 0 deletions tests/inc/model/userStatX/UserStatsXMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Nextras\Orm\Mapper\Dbal\DbalMapper;


/**
* @extends DbalMapper<UserStatX>
*/
final class UserStatsXMapper extends DbalMapper
{
}
3 changes: 3 additions & 0 deletions tests/inc/model/userStatX/UserStatsXRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Nextras\Orm\Repository\Repository;


/**
* @extends Repository<UserStatX>
*/
final class UserStatsXRepository extends Repository
{
static function getEntityClassNames(): array
Expand Down

0 comments on commit fbcba0e

Please sign in to comment.