Skip to content

Commit

Permalink
tests/Indexer/testdata/golden: fix golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrjenni committed Oct 30, 2023
1 parent d6b8997 commit 07625cc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/Indexer/testdata/golden/src/ClassA.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,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.2.11 PHP_MAJOR_VERSION.
// ^^^^^^^^^^^^^^^^^ reference scip-php composer php 8.2.12 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;
Expand Down
4 changes: 2 additions & 2 deletions tests/Indexer/testdata/golden/src/ClassF.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace TestData;

use function strlen;
// ^^^^^^ reference scip-php composer php 8.2.11 strlen().
// ^^^^^^ reference scip-php composer php 8.2.12 strlen().

/** @method ClassA m1(int $p1, $p2, bool $p3) */
// ^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassF#m1().
Expand Down Expand Up @@ -34,7 +34,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.2.11 strlen().
// ^^^^^^ reference scip-php composer php 8.2.12 strlen().
}

public static function f2(): ClassA
Expand Down
10 changes: 5 additions & 5 deletions tests/Indexer/testdata/golden/src/ClassH.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
namespace TestData
{
use Exception;
// ^^^^^^^^^ reference scip-php composer php 8.2.11 Exception#
// ^^^^^^^^^ reference scip-php composer php 8.2.12 Exception#

final class ClassH extends Exception
// ^^^^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassH#
// documentation ```php
// ^^^^^^^^^ reference scip-php composer php 8.2.11 Exception#
// ^^^^^^^^^ reference scip-php composer php 8.2.12 Exception#
{

public function __construct()
// ^^^^^^^^^^^ definition scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassH#__construct().
// documentation ```php
{
parent::__construct();
// ^^^^^^ reference scip-php composer php 8.2.11 Exception#
// ^^^^^^^^^^^ reference scip-php composer php 8.2.11 Exception#__construct().
// ^^^^^^ reference scip-php composer php 8.2.12 Exception#
// ^^^^^^^^^^^ reference scip-php composer php 8.2.12 Exception#__construct().
}

public function h1(): int
Expand All @@ -31,7 +31,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.2.11 Exception#getCode().
// ^^^^^^^ reference scip-php composer php 8.2.12 Exception#getCode().
// ^^^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 fun2().
// ^^ reference scip-php composer davidrjenni/scip-php-test 2879a47ba00225b1d0cf31ebe8b9fc7f6cd28be5 TestData/ClassA#a2().
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Indexer/testdata/golden/src/TraitE.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function e3(): int
{
if (true) {
return 23 - count([0]);
// ^^^^^ reference scip-php composer php 8.2.11 count().
// ^^^^^ reference scip-php composer php 8.2.12 count().
}
if (false) {
return 42;
Expand Down

0 comments on commit 07625cc

Please sign in to comment.