Skip to content

Commit

Permalink
Test to see if CI correctly disables the PDO extension and fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Dec 8, 2021
1 parent ed22d0f commit f5920be
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,6 +1,7 @@
<?php
namespace Psalm\Internal\Provider\ReturnTypeProvider;

use PDO;
use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer;
use Psalm\Internal\Analyzer\StatementsAnalyzer;
use Psalm\Plugin\EventHandler\Event\MethodParamsProviderEvent;
Expand Down Expand Up @@ -57,7 +58,7 @@ public static function getMethodParams(MethodParamsProviderEvent $event): ?array
$value = $first_call_arg_type->getSingleIntLiteral()->value;

switch ($value) {
case 7: // PDO::FETCH_COLUMN
case PDO::FETCH_COLUMN: // PDO::FETCH_COLUMN
$params[] = new FunctionLikeParameter(
'colno',
false,
Expand Down

0 comments on commit f5920be

Please sign in to comment.