We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
// lint
1 parent 13c0405 commit c0efe59Copy full SHA for c0efe59
tests/PHPStan/Analyser/nsrt/bug-8886.php
@@ -1,16 +1,11 @@
1
-<?php
+<?php // lint >= 8.0
2
3
namespace Bug8886;
4
5
use PDO;
6
use function PHPStan\Testing\assertType;
7
8
function testPDOStatementGetIterator(): void {
9
- if (PHP_VERSION_ID < 80000) {
10
- echo "Test skipped: PDOStatement::getIterator is only available in PHP 8 and above.";
11
- return;
12
- }
13
-
14
$pdo = new PDO('sqlite::memory:');
15
$stmt = $pdo->query('SELECT 1');
16
0 commit comments