Skip to content

Commit

Permalink
Support nextras/(orm|dbal):5
Browse files Browse the repository at this point in the history
  • Loading branch information
radimvaculik committed Jan 13, 2025
1 parent af2dc7a commit f4ef0eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"mockery/mockery": "^1.3.3",
"nette/database": "^3.0.2",
"nette/tester": "^2.3.4",
"nextras/dbal": "^4.0",
"nextras/orm": "^4.0",
"nextras/dbal": "^4.0 || ^5.0",
"nextras/orm": "^4.0 || ^5.0",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan-nette": "^1.0.0",
Expand Down
6 changes: 3 additions & 3 deletions tests/Cases/DataSources/NextrasDataSourceTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use Nextras\Dbal\Connection;
use Nextras\Orm\Collection\Expression\LikeExpression;
use Nextras\Orm\Entity\Entity;
use Nextras\Orm\Mapper\Dbal\DbalMapperCoordinator;
use Nextras\Orm\Mapper\Mapper;
use Nextras\Orm\Mapper\Dbal\DbalMapper;

Check failure on line 15 in tests/Cases/DataSources/NextrasDataSourceTest.phpt

View workflow job for this annotation

GitHub Actions / Codesniffer / Codesniffer (8.3)

Use statements should be sorted alphabetically. The first wrong one is Nextras\Orm\Mapper\Dbal\DbalMapper.
use Nextras\Orm\Model\Model;
use Nextras\Orm\Model\SimpleModelFactory;
use Nextras\Orm\Repository\Repository;
Expand Down Expand Up @@ -129,7 +129,7 @@ class User extends Entity

}

class UsersMapper extends Mapper
class UsersMapper extends DbalMapper
{

}
Expand All @@ -155,7 +155,7 @@ class Book extends Entity

}

class BooksMapper extends Mapper
class BooksMapper extends DbalMapper
{

}
Expand Down

0 comments on commit f4ef0eb

Please sign in to comment.