Skip to content

Commit 57b0d05

Browse files
committed
refactor: add/strengthen type hints
1 parent 869cc7f commit 57b0d05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Drafts/BaseDraftTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class BaseDraftTestCase extends BaseTestCase
1414
/**
1515
* @return array<string, array{string, string}>
1616
*/
17-
private function setUpTests($isValid): array
17+
private function setUpTests(bool $isValid): array
1818
{
1919
$filePaths = $this->getFilePaths();
2020
$skippedTests = $this->getSkippedTests();
@@ -62,12 +62,12 @@ public function getValidTests(): array
6262
}
6363

6464
/**
65-
* @return string[]
65+
* @return list<string>
6666
*/
6767
abstract protected function getFilePaths(): array;
6868

6969
/**
70-
* @return string[]
70+
* @return list<string>
7171
*/
7272
abstract protected function getSkippedTests(): array;
7373

tests/Drafts/Draft4Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class Draft4Test extends BaseDraftTestCase
1616
{
17-
protected $schemaSpec = 'http://json-schema.org/draft-04/schema#';
17+
/** @var bool */
1818
protected $validateSchema = true;
1919

2020
/**

0 commit comments

Comments
 (0)