Skip to content

Commit

Permalink
Merge pull request #160 from Yoast/JRF/minor-fixes
Browse files Browse the repository at this point in the history
QA/Docs: minor fixes
  • Loading branch information
enricobattocchi authored Dec 22, 2023
2 parents b56c9ca + b36948a commit a645c87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Configuration {
/**
* Configuration constructor.
*
* @param array<string> $configuration The configuration to use.
* @param array<string, string> $configuration The configuration to use.
*
* @throws InvalidType When the $configuration parameter is not of the expected type.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/RequirementsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class RequirementsChecker {
/**
* RequirementsChecker constructor.
*
* @param array<Requirement> $configuration The configuration to check.
* @param string $textdomain The text domain to use for translations.
* @param array<string, string> $configuration The configuration to check.
* @param string $textdomain The text domain to use for translations.
*
* @throws InvalidType When the $configuration parameter is not of the expected type.
*/
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/RequirementsCheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function testIfRequirementExists() {
* @return void
*/
public function testCheckIfPHPRequirementIsNotFulfilled() {
$checker = new RequirementsChecker( array( 'php' => 4 ) );
$checker = new RequirementsChecker( array( 'php' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'php', '5.6' ) );
$checker->check();
Expand Down Expand Up @@ -189,7 +189,7 @@ public function testCheckIfRequirementIsFulfilled() {
* @return void
*/
public function testCheckIfRequirementIsNotFulfilled() {
$checker = new RequirementsChecker( array( 'mysql' => 4 ) );
$checker = new RequirementsChecker( array( 'mysql' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'mysql', '5.6' ) );
$checker->check();
Expand All @@ -215,7 +215,7 @@ public function testCheckIfRequirementIsNotFulfilled() {
* @return void
*/
public function testCheckIfRequirementIsFulfilledWithSpecificComparison() {
$checker = new RequirementsChecker( array( 'php' => 4 ) );
$checker = new RequirementsChecker( array( 'php' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'php', '5.2', '<' ) );
$checker->check();
Expand All @@ -233,7 +233,7 @@ public function testCheckIfRequirementIsFulfilledWithSpecificComparison() {
* @return void
*/
public function testCheckIfRequirementIsNotFulfilledWithSpecificComparison() {
$checker = new RequirementsChecker( array( 'php' => 4 ) );
$checker = new RequirementsChecker( array( 'php' => '4' ) );

$checker->addRequirement( new VersionRequirement( 'php', '5.2', '>=' ) );
$checker->check();
Expand Down

0 comments on commit a645c87

Please sign in to comment.