Skip to content

Commit af99491

Browse files
committed
Fixing PHPStan
1 parent 3edd444 commit af99491

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
parameters:
22
level: 2
3+
inferPrivatePropertyTypeFromConstructor: true
34
ignoreErrors:
45
- "#Mouf\\\\MoufManager#"
56
- "#Mouf\\\\MoufInstanceDescriptor#"

src/SQLParser/Node/AggregateFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function toInstanceDescriptor(MoufManager $moufManager)
145145
* Renders the object as a SQL string.
146146
*
147147
* @param array $parameters
148-
* @param \SQLParser\Node\AbstractPlatform $platform
148+
* @param AbstractPlatform $platform
149149
* @param int $indent
150150
* @param int $conditionsMode
151151
*

src/SQLParser/Node/NodeFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ private static function array_map_deep($array, $callback)
844844
* Tansforms the array of nodes (or the node) passed in parameter into a SQL string.
845845
*
846846
* @param mixed $nodes Recursive array of node interface
847-
* @param Connection $platform
847+
* @param AbstractPlatform $platform
848848
* @param array $parameters
849849
* @param string $delimiter
850850
* @param bool|string $wrapInBrackets
@@ -853,7 +853,7 @@ private static function array_map_deep($array, $callback)
853853
*
854854
* @return null|string
855855
*/
856-
public static function toSql($nodes, AbstractPlatform $platform = null, array $parameters = array(), $delimiter = ',', $wrapInBrackets = true, $indent = 0, $conditionsMode = SqlRenderInterface::CONDITION_APPLY, bool $extrapolateParameters = true)
856+
public static function toSql($nodes, AbstractPlatform $platform, array $parameters = array(), $delimiter = ',', $wrapInBrackets = true, $indent = 0, $conditionsMode = SqlRenderInterface::CONDITION_APPLY, bool $extrapolateParameters = true)
857857
{
858858
if (is_array($nodes)) {
859859
$elems = array();

0 commit comments

Comments
 (0)