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 f9f580a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 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
4 changes: 0 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ parameters:
message: "#^Cannot call method filterRow\\(\\) on Contributte\\\\Datagrid\\\\DataModel\\|null\\.$#"
count: 1
path: src/Datagrid.php
-
message: "#^Parameter \\#1 \\$x of method Doctrine\\\\ORM\\\\Query\\\\Expr\\:\\:like\\(\\) expects string, Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Func given\\.$#"
count: 1
path: src/DataSource/DoctrineDataSource.php
- # In PHP 8+, the Stringable typehint should be used, and this can be removed.
message: '#string\\|Stringable#'
count: 1
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 @@ -11,8 +11,8 @@ use Nette\Utils\Arrays;
use Nextras\Dbal\Connection;
use Nextras\Orm\Collection\Expression\LikeExpression;
use Nextras\Orm\Entity\Entity;
use Nextras\Orm\Mapper\Dbal\DbalMapper;
use Nextras\Orm\Mapper\Dbal\DbalMapperCoordinator;
use Nextras\Orm\Mapper\Mapper;
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 f9f580a

Please sign in to comment.