-
-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
lib/Doctrine/Migrations/Query/Exception/InvalidArguments.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,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\Migrations\Query\Exception; | ||
|
||
use Doctrine\Migrations\Exception\MigrationException; | ||
use InvalidArgumentException; | ||
use function sprintf; | ||
|
||
class InvalidArguments extends InvalidArgumentException implements MigrationException | ||
{ | ||
public static function wrongTypesArgumentCount(string $statement, int $parameters, int $types) : self | ||
{ | ||
return new self(sprintf( | ||
'The number of types (%s) is higher than the number of passed parameters (%s) for the query "%s".', | ||
$types, | ||
$parameters, | ||
$statement | ||
)); | ||
} | ||
} |
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