@@ -114,6 +114,9 @@ |
||
| 114 | 114 | return new $exClass($resultHandler, $query); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param resource $resultHandler |
|
| 119 | + */ |
|
| 117 | 120 | private function inferExceptionClass($resultHandler, StatementExceptionFactory $fallbackFactory = null): string |
| 118 | 121 | { |
| 119 | 122 | if ($this->bySqlStateCodeAndMessage || $this->bySqlStateCode || $this->bySqlStateClass) { |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | private $connection; |
| 10 | 10 | private $connHandler; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param resource $connHandler |
|
| 14 | + */ |
|
| 12 | 15 | public function __construct(IConnection $connection, $connHandler) |
| 13 | 16 | { |
| 14 | 17 | $this->connection = $connection; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * @param bool|null $quoted |
| 99 | 99 | * @return string|null <tt>null</tt> iff <tt>$str</tt> is <tt>null</tt> |
| 100 | 100 | */ |
| 101 | - private function unquoteString($str, bool &$quoted = null) |
|
| 101 | + private function unquoteString($str, bool & $quoted = null) |
|
| 102 | 102 | { |
| 103 | 103 | if ($str && $str[0] == '"') { |
| 104 | 104 | assert($str[strlen($str) - 1] == '"'); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | * @param int $starCnt number of star wildcards is stored here |
| 31 | 31 | * @return string PCRE equivalent to <tt>$macroPattern</tt> |
| 32 | 32 | */ |
| 33 | - protected static function simpleMacroPatternToPcre(string $macroPattern, int &$starCnt = null): string |
|
| 33 | + protected static function simpleMacroPatternToPcre(string $macroPattern, int & $starCnt = null): string |
|
| 34 | 34 | { |
| 35 | 35 | $starCnt = 0; |
| 36 | 36 | $pcre = '/^'; |