PHP 8.2.31
Preview: Is.php Size: 941 B
/opt/cpanel/ea-wappspector/vendor/guzzlehttp/promises/src/Is.php

<?php

declare(strict_types=1);

namespace GuzzleHttp\Promise;

final class Is
{
    /**
     * Returns true if a promise is pending.
     */
    public static function pending(PromiseInterface $promise): bool
    {
        return $promise->getState() === PromiseInterface::PENDING;
    }

    /**
     * Returns true if a promise is fulfilled or rejected.
     */
    public static function settled(PromiseInterface $promise): bool
    {
        return $promise->getState() !== PromiseInterface::PENDING;
    }

    /**
     * Returns true if a promise is fulfilled.
     */
    public static function fulfilled(PromiseInterface $promise): bool
    {
        return $promise->getState() === PromiseInterface::FULFILLED;
    }

    /**
     * Returns true if a promise is rejected.
     */
    public static function rejected(PromiseInterface $promise): bool
    {
        return $promise->getState() === PromiseInterface::REJECTED;
    }
}

Directory Contents

Dirs: 0 × Files: 16

Name Size Perms Modified Actions
413 B lrw-r--r-- 2025-08-22 14:34:08
Edit Download
209 B lrw-r--r-- 2025-08-22 14:34:08
Edit Download
4.07 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
1.96 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
2.60 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
7.42 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
2.00 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
941 B lrw-r--r-- 2025-08-22 14:34:08
Edit Download
8.75 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
2.76 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
249 B lrw-r--r-- 2025-08-22 14:34:08
Edit Download
2.21 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
1.21 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
1.97 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download
450 B lrw-r--r-- 2025-08-22 14:34:08
Edit Download
8.25 KB lrw-r--r-- 2025-08-22 14:34:08
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).