Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekmarek committed Nov 28, 2022
1 parent 07a5c66 commit 0a88801
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions application/Modules/Test/ORM/Controller/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@ class Controller_Main extends MVC_Controller_Default
public function test_orm_Action(): void
{
$backends = [];

$backends[DataModel_Backend::TYPE_MYSQL] = new DataModel_Backend_MySQL( (new DataModel_Backend_MySQL_Config()) );
$backends[DataModel_Backend::TYPE_SQLITE] = new DataModel_Backend_SQLite( (new DataModel_Backend_SQLite_Config()) );

$mysql = new DataModel_Backend_MySQL( (new DataModel_Backend_MySQL_Config()) );
if($mysql->isAvailable()) {
$backends[DataModel_Backend::TYPE_MYSQL] = $mysql;
}

$sqlite = new DataModel_Backend_SQLite( (new DataModel_Backend_SQLite_Config()) );
if($sqlite->isAvailable()) {
$backends[DataModel_Backend::TYPE_SQLITE] = $sqlite;
}

$_tests = [
'BasicSelect',
Expand Down
4 changes: 2 additions & 2 deletions library/Jet/DataModel/Query/GroupBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function key(): string
/**
* @see \Iterator
*/
public function next(): mixed
public function next(): void
{
return next( $this->items );
next( $this->items );
}

/**
Expand Down

0 comments on commit 0a88801

Please sign in to comment.