diff --git a/src/Promise.php b/src/Promise.php index 61312b6..e4012a4 100644 --- a/src/Promise.php +++ b/src/Promise.php @@ -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. */ @@ -143,6 +146,7 @@ private function tryComplete():void { } } + // phpcs:ignore private function complete():void { usort( $this->chain,