diff --git a/tests/Indexer/IndexerTest.php b/tests/Indexer/IndexerTest.php index 6abfa253..518221fd 100644 --- a/tests/Indexer/IndexerTest.php +++ b/tests/Indexer/IndexerTest.php @@ -71,7 +71,7 @@ public function testIndexer(): void $actualPath = self::TESTDATA_DIR . 'actual'; $output = []; - $result = exec("scip snapshot --from {$this->indexFile} --to {$actualPath}", $output); + $result = exec("scip snapshot --strict=false --from={$this->indexFile} --to={$actualPath}", $output); if ($result === false) { self::fail('Error executing scip: ' . ($output[0] ?? 'no output') . '.'); } diff --git a/tests/Indexer/testdata/golden/src/ClassA.php b/tests/Indexer/testdata/golden/src/ClassA.php index 0b6157a1..aa5633f3 100644 --- a/tests/Indexer/testdata/golden/src/ClassA.php +++ b/tests/Indexer/testdata/golden/src/ClassA.php @@ -193,7 +193,7 @@ public function __construct(?int $p) { $this->z1 = $p; } 1 => $this->a1, // ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#$a1. PHP_MAJOR_VERSION => $this->a1?->b1, -// ^^^^^^^^^^^^^^^^^ reference scip-php composer php 8.4.15 PHP_MAJOR_VERSION. +// ^^^^^^^^^^^^^^^^^ reference scip-php composer php 8.4.19 PHP_MAJOR_VERSION. // ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#$a1. // ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassB#$b1. })->b2; diff --git a/tests/Indexer/testdata/golden/src/ClassF.php b/tests/Indexer/testdata/golden/src/ClassF.php index 0da0b8bc..c5241950 100644 --- a/tests/Indexer/testdata/golden/src/ClassF.php +++ b/tests/Indexer/testdata/golden/src/ClassF.php @@ -5,7 +5,7 @@ namespace TestData; use function strlen; -// ^^^^^^ reference scip-php composer php 8.4.15 strlen(). +// ^^^^^^ reference scip-php composer php 8.4.19 strlen(). /** @method ClassA m1(int $p1, $p2, bool $p3) */ // ^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassF#m1(). @@ -50,7 +50,7 @@ public function f1(): int { return $this->f1 + 42 + strlen('ABC'); // ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassF#$f1. -// ^^^^^^ reference scip-php composer php 8.4.15 strlen(). +// ^^^^^^ reference scip-php composer php 8.4.19 strlen(). } public static function f2(): ClassA diff --git a/tests/Indexer/testdata/golden/src/ClassH.php b/tests/Indexer/testdata/golden/src/ClassH.php index 746e8bec..b3afec42 100644 --- a/tests/Indexer/testdata/golden/src/ClassH.php +++ b/tests/Indexer/testdata/golden/src/ClassH.php @@ -5,7 +5,7 @@ namespace TestData { use Exception; -// ^^^^^^^^^ reference scip-php composer php 8.4.15 Exception# +// ^^^^^^^^^ reference scip-php composer php 8.4.19 Exception# final class ClassH extends Exception // ^^^^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassH# @@ -13,7 +13,7 @@ final class ClassH extends Exception // > ```php // > final class ClassH extends Exception // > ``` -// ^^^^^^^^^ reference scip-php composer php 8.4.15 Exception# +// ^^^^^^^^^ reference scip-php composer php 8.4.19 Exception# { public function __construct() @@ -24,8 +24,8 @@ public function __construct() // > ``` { parent::__construct(); -// ^^^^^^ reference scip-php composer php 8.4.15 Exception# -// ^^^^^^^^^^^ reference scip-php composer php 8.4.15 Exception#__construct(). +// ^^^^^^ reference scip-php composer php 8.4.19 Exception# +// ^^^^^^^^^^^ reference scip-php composer php 8.4.19 Exception#__construct(). } public function h1(): int @@ -40,7 +40,7 @@ public function h1(): int // ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassF#f2(). // ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#a2(). return $this->getCode() + fun2()->a2() * $x; -// ^^^^^^^ reference scip-php composer php 8.4.15 Exception#getCode(). +// ^^^^^^^ reference scip-php composer php 8.4.19 Exception#getCode(). // ^^^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 fun2(). // ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#a2(). } diff --git a/tests/Indexer/testdata/golden/src/TraitE.php b/tests/Indexer/testdata/golden/src/TraitE.php index 49dbc29e..2a8ab2bd 100644 --- a/tests/Indexer/testdata/golden/src/TraitE.php +++ b/tests/Indexer/testdata/golden/src/TraitE.php @@ -67,7 +67,7 @@ public function e3(): int { if (true) { return 23 - count([0]); -// ^^^^^ reference scip-php composer php 8.4.15 count(). +// ^^^^^ reference scip-php composer php 8.4.19 count(). } if (false) { return 42;