PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 All 130 releases
← All changes | vendor_prefixed/guzzlehttp/promises/src/Is.php +5 -12 18.0 → trunk View file →
@@ -1,6 +1,7 @@
1 1 <?php
2 2
3 +declare (strict_types=1);
3 4 namespace YoastSEO_Vendor\GuzzleHttp\Promise;
4 5
5 6 final class Is
6 7 {
@@ -5,39 +6,31 @@
5 6 final class Is
6 7 {
7 8 /**
8 9 * Returns true if a promise is pending.
9 - *
10 - * @return bool
11 10 */
12 - public static function pending(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise)
11 + public static function pending(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise) : bool
13 12 {
14 13 return $promise->getState() === \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface::PENDING;
15 14 }
16 15 /**
17 16 * Returns true if a promise is fulfilled or rejected.
18 - *
19 - * @return bool
20 17 */
21 - public static function settled(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise)
18 + public static function settled(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise) : bool
22 19 {
23 20 return $promise->getState() !== \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface::PENDING;
24 21 }
25 22 /**
26 23 * Returns true if a promise is fulfilled.
27 - *
28 - * @return bool
29 24 */
30 - public static function fulfilled(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise)
25 + public static function fulfilled(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise) : bool
31 26 {
32 27 return $promise->getState() === \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface::FULFILLED;
33 28 }
34 29 /**
35 30 * Returns true if a promise is rejected.
36 - *
37 - * @return bool
38 31 */
39 - public static function rejected(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise)
32 + public static function rejected(\YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface $promise) : bool
40 33 {
41 34 return $promise->getState() === \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface::REJECTED;
42 35 }
43 36 }