-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
12 changed files
with
170 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the ramsey/uuid-doctrine library | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Ben Ramsey <http://benramsey.com> | ||
* @license http://opensource.org/licenses/MIT MIT | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ramsey\Uuid\Doctrine; | ||
|
||
use Doctrine\DBAL\ParameterType; | ||
|
||
use function enum_exists; | ||
use function function_exists; | ||
|
||
if (function_exists('enum_exists') && enum_exists(ParameterType::class)) { | ||
/** | ||
* @internal | ||
*/ | ||
trait GetBindingTypeImplementation | ||
{ | ||
/** | ||
* @psalm-suppress InvalidReturnType | ||
* @psalm-suppress ImplementedReturnTypeMismatch | ||
*/ | ||
public function getBindingType(): ParameterType | ||
{ | ||
return ParameterType::BINARY; | ||
} | ||
} | ||
} else { | ||
/** | ||
* @internal | ||
*/ | ||
trait GetBindingTypeImplementation | ||
{ | ||
public function getBindingType(): int | ||
{ | ||
return ParameterType::BINARY; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.