Skip to content

Commit c33963e

Browse files
chore: make more targeted phpstan ignores
1 parent 372bf28 commit c33963e

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

tests/Services/CrawlTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testRetrieveResults(): void
3535

3636
$result = $this->client->crawl->retrieveResults('task_id');
3737

38-
$this->assertTrue(true); // @phpstan-ignore-line
38+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
3939
}
4040

4141
#[Test]
@@ -47,7 +47,7 @@ public function testStart(): void
4747

4848
$result = $this->client->crawl->start(url: 'https://example.com');
4949

50-
$this->assertTrue(true); // @phpstan-ignore-line
50+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
5151
}
5252

5353
#[Test]
@@ -59,6 +59,6 @@ public function testStartWithOptionalParams(): void
5959

6060
$result = $this->client->crawl->start(url: 'https://example.com');
6161

62-
$this->assertTrue(true); // @phpstan-ignore-line
62+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
6363
}
6464
}

tests/Services/CreditsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function testRetrieve(): void
3535

3636
$result = $this->client->credits->retrieve();
3737

38-
$this->assertTrue(true); // @phpstan-ignore-line
38+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
3939
}
4040
}

tests/Services/FeedbackTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testSubmit(): void
3838
requestID: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'
3939
);
4040

41-
$this->assertTrue(true); // @phpstan-ignore-line
41+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
4242
}
4343

4444
#[Test]
@@ -53,6 +53,6 @@ public function testSubmitWithOptionalParams(): void
5353
requestID: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'
5454
);
5555

56-
$this->assertTrue(true); // @phpstan-ignore-line
56+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
5757
}
5858
}

tests/Services/GenerateSchemaTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testCreate(): void
3737
userPrompt: 'Create a schema for product information including name, price, and reviews',
3838
);
3939

40-
$this->assertTrue(true); // @phpstan-ignore-line
40+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
4141
}
4242

4343
#[Test]
@@ -51,7 +51,7 @@ public function testCreateWithOptionalParams(): void
5151
userPrompt: 'Create a schema for product information including name, price, and reviews',
5252
);
5353

54-
$this->assertTrue(true); // @phpstan-ignore-line
54+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
5555
}
5656

5757
#[Test]
@@ -65,6 +65,6 @@ public function testRetrieve(): void
6565
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'
6666
);
6767

68-
$this->assertTrue(true); // @phpstan-ignore-line
68+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
6969
}
7070
}

tests/Services/HealthzTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function testCheck(): void
3535

3636
$result = $this->client->healthz->check();
3737

38-
$this->assertTrue(true); // @phpstan-ignore-line
38+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
3939
}
4040
}

tests/Services/MarkdownifyTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testConvert(): void
3737
websiteURL: 'https://example.com'
3838
);
3939

40-
$this->assertTrue(true); // @phpstan-ignore-line
40+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
4141
}
4242

4343
#[Test]
@@ -51,7 +51,7 @@ public function testConvertWithOptionalParams(): void
5151
websiteURL: 'https://example.com'
5252
);
5353

54-
$this->assertTrue(true); // @phpstan-ignore-line
54+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
5555
}
5656

5757
#[Test]
@@ -65,6 +65,6 @@ public function testRetrieveStatus(): void
6565
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'
6666
);
6767

68-
$this->assertTrue(true); // @phpstan-ignore-line
68+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
6969
}
7070
}

tests/Services/SearchscraperTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testCreate(): void
3737
userPrompt: 'Find the latest AI news and extract headlines and summaries'
3838
);
3939

40-
$this->assertTrue(true); // @phpstan-ignore-line
40+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
4141
}
4242

4343
#[Test]
@@ -51,7 +51,7 @@ public function testCreateWithOptionalParams(): void
5151
userPrompt: 'Find the latest AI news and extract headlines and summaries'
5252
);
5353

54-
$this->assertTrue(true); // @phpstan-ignore-line
54+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
5555
}
5656

5757
#[Test]
@@ -65,6 +65,6 @@ public function testRetrieveStatus(): void
6565
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'
6666
);
6767

68-
$this->assertTrue(true); // @phpstan-ignore-line
68+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
6969
}
7070
}

tests/Services/SmartscraperTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testCreate(): void
3737
userPrompt: 'Extract the product name, price, and description'
3838
);
3939

40-
$this->assertTrue(true); // @phpstan-ignore-line
40+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
4141
}
4242

4343
#[Test]
@@ -51,7 +51,7 @@ public function testCreateWithOptionalParams(): void
5151
userPrompt: 'Extract the product name, price, and description'
5252
);
5353

54-
$this->assertTrue(true); // @phpstan-ignore-line
54+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
5555
}
5656

5757
#[Test]
@@ -65,7 +65,7 @@ public function testRetrieve(): void
6565
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'
6666
);
6767

68-
$this->assertTrue(true); // @phpstan-ignore-line
68+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
6969
}
7070

7171
#[Test]
@@ -77,6 +77,6 @@ public function testList(): void
7777

7878
$result = $this->client->smartscraper->list();
7979

80-
$this->assertTrue(true); // @phpstan-ignore-line
80+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
8181
}
8282
}

tests/Services/ValidateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function testAPIKey(): void
3535

3636
$result = $this->client->validate->apiKey();
3737

38-
$this->assertTrue(true); // @phpstan-ignore-line
38+
$this->assertTrue(true); // @phpstan-ignore method.alreadyNarrowedType
3939
}
4040
}

0 commit comments

Comments
 (0)