We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4529498 commit 821346dCopy full SHA for 821346d
src/Illuminate/Collections/Collection.php
@@ -663,6 +663,10 @@ public function intersectByKeys($items)
663
/**
664
* Determine if the collection is empty or not.
665
*
666
+ * @phpstan-assert-if-true null $this->first()
667
+ *
668
+ * @phpstan-assert-if-false !null $this->first()
669
670
* @return bool
671
*/
672
public function isEmpty()
src/Illuminate/Collections/Traits/EnumeratesValues.php
@@ -367,6 +367,10 @@ public function ensure($type)
367
368
* Determine if the collection is not empty.
369
370
+ * @phpstan-assert-if-true !null $this->first()
371
372
+ * @phpstan-assert-if-false null $this->first()
373
374
375
376
public function isNotEmpty()
0 commit comments