Skip to content

Commit

Permalink
Merge 69c561e into 11acf17
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobattocchi committed Dec 22, 2023
2 parents 11acf17 + 69c561e commit 7b786d7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"Yoast\\WHIP\\Config\\Composer\\Actions::check_coding_standards"
],
"check-cs-thresholds": [
"@putenv YOASTCS_THRESHOLD_ERRORS=10",
"@putenv YOASTCS_THRESHOLD_ERRORS=2",
"@putenv YOASTCS_THRESHOLD_WARNINGS=0",
"Yoast\\WHIP\\Config\\Composer\\Actions::check_cs_thresholds"
],
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class Configuration {
/**
* The configuration to use.
*
* @var array
* @var array<string>
*/
private $configuration;

/**
* Configuration constructor.
*
* @param array $configuration The configuration to use.
* @param array<string> $configuration The configuration to use.
*
* @throws InvalidType When the $configuration parameter is not of the expected type.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Facade to quickly check if version requirements are met.
*
* @param array $requirements The requirements to check.
* @param array<string> $requirements The requirements to check.
*
* @return void
*/
Expand Down
6 changes: 3 additions & 3 deletions src/MessagesManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function hasMessages() {
/**
* Lists the messages that are currently available.
*
* @return array The messages that are currently set.
* @return array<Message> The messages that are currently set.
*/
public function listMessages() {
return $GLOBALS['whip_messages'];
Expand Down Expand Up @@ -79,9 +79,9 @@ public function getLatestMessage() {
/**
* Sorts the list of messages based on the version number.
*
* @param array $messages The list of messages to sort.
* @param array<Message> $messages The list of messages to sort.
*
* @return array The sorted list of messages.
* @return array<Message> The sorted list of messages.
*/
private function sortByVersion( array $messages ) {
\uksort( $messages, 'version_compare' );
Expand Down
6 changes: 3 additions & 3 deletions src/RequirementsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class RequirementsChecker {
/**
* Requirements the environment should comply with.
*
* @var array
* @var array<Requirement>
*/
private $requirements;

Expand Down Expand Up @@ -44,8 +44,8 @@ class RequirementsChecker {
/**
* RequirementsChecker constructor.
*
* @param array $configuration The configuration to check.
* @param string $textdomain The text domain to use for translations.
* @param array<Requirement> $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

0 comments on commit 7b786d7

Please sign in to comment.