-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autodetect driver setup for precise int/float/bool inference in expre…
…ssions (stringified or not)
- Loading branch information
Showing
22 changed files
with
6,061 additions
and
597 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
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,31 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Type\Doctrine\Query; | ||
|
||
use Doctrine\ORM\Query\AST\Literal; | ||
use PHPStan\Type\Constant\ConstantStringType; | ||
|
||
class DqlConstantStringType extends ConstantStringType | ||
{ | ||
|
||
/** @var Literal::* */ | ||
private $originLiteralType; | ||
|
||
/** | ||
* @param Literal::* $originLiteralType | ||
*/ | ||
public function __construct(string $value, int $originLiteralType) | ||
{ | ||
parent::__construct($value, false); | ||
$this->originLiteralType = $originLiteralType; | ||
} | ||
|
||
/** | ||
* @return Literal::* | ||
*/ | ||
public function getOriginLiteralType(): int | ||
{ | ||
return $this->originLiteralType; | ||
} | ||
|
||
} |
Oops, something went wrong.