Skip to content

Commit

Permalink
build: ignore complexity error
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed May 5, 2024
1 parent dfcbb3c commit 466fcac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
use Gt\Promise\Chain\ThenChain;
use Throwable;

/** @SuppressWarnings(PHPMD.ExcessiveClassComplexity) */
/**
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
class Promise implements PromiseInterface {
private mixed $resolvedValue;
/** @var bool This is required due to the ability to set `null` as a resolved value. */
Expand Down Expand Up @@ -143,6 +146,7 @@ private function tryComplete():void {
}
}

// phpcs:ignore
private function complete():void {
usort(
$this->chain,
Expand Down

0 comments on commit 466fcac

Please sign in to comment.