Skip to content

Commit

Permalink
Files/TestDoubles: minor documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 19, 2023
1 parent ec46172 commit b1a3e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Yoast/Sniffs/Files/TestDoublesSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ final class TestDoublesSniff implements Sniff {
* @since 1.1.0 The property type has changed from string to array.
* Use of this property with a string value has been deprecated.
*
* @var string[]
* @var array<string>
*/
public $doubles_path = [
'/tests/doubles',
];

/**
* Validated absolute target paths for test double/mock classes or an empty array
* Validated absolute target paths for test fixture directories or an empty array
* if the intended target directory/directories don't exist.
*
* @var string[]
* @var array<string>
*/
private $target_paths;

Expand Down
2 changes: 1 addition & 1 deletion Yoast/Tests/Files/TestDoublesUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function setCliValues( $filename, $config ): void {
*
* @param string $testFileBase The base path that the unit tests files will have.
*
* @return string[]
* @return array<string>
*/
protected function getTestFiles( $testFileBase ): array {
$sep = \DIRECTORY_SEPARATOR;
Expand Down

0 comments on commit b1a3e9a

Please sign in to comment.