-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand array parameters to list of placeholders
- Loading branch information
1 parent
f06e276
commit 8ecaa94
Showing
23 changed files
with
346 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...kit/test/Repository/Fixture/VariableArrayDocCommentMissingParamSQLRepositoryInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace DataAccessKit\Repository\Fixture; | ||
|
||
use DataAccessKit\Repository\Attribute\Repository; | ||
use DataAccessKit\Repository\Attribute\SQL; | ||
|
||
#[Repository(Foo::class)] | ||
interface VariableArrayDocCommentMissingParamSQLRepositoryInterface | ||
{ | ||
/** | ||
* Find by ids. | ||
* | ||
* @return Foo[] | ||
*/ | ||
#[SQL("SELECT * FROM foo WHERE id IN (@ids)")] | ||
public function findByIds(array $ids): array; | ||
} |
13 changes: 13 additions & 0 deletions
13
data-access-kit/test/Repository/Fixture/VariableArrayNoDocCommentSQLRepositoryInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace DataAccessKit\Repository\Fixture; | ||
|
||
use DataAccessKit\Repository\Attribute\Repository; | ||
use DataAccessKit\Repository\Attribute\SQL; | ||
|
||
#[Repository(Foo::class)] | ||
interface VariableArrayNoDocCommentSQLRepositoryInterface | ||
{ | ||
#[SQL("SELECT * FROM foo WHERE id IN (@ids)")] | ||
public function findByIds(array $ids): array; | ||
} |
Oops, something went wrong.