| Methods |
public
|
getAll(): AssertTag[]
|
#
|
public
|
getAsserts(): AssertTag[]
Unconditional assertions — narrow parameter types regardless of the method's return value.
Unconditional assertions — narrow parameter types regardless of the method's return value.
|
#
|
public
|
getAssertsIfTrue(): AssertTag[]
Includes @phpstan-assert-if-true tags and negated @phpstan-assert-if-false tags.
Includes @phpstan-assert-if-true tags and negated @phpstan-assert-if-false tags.
|
#
|
public
|
getAssertsIfFalse(): AssertTag[]
Includes @phpstan-assert-if-false tags and negated @phpstan-assert-if-true tags.
Includes @phpstan-assert-if-false tags and negated @phpstan-assert-if-true tags.
|
#
|
public
|
mapTypes(callable(Type): Type $callable): self
|
#
|
public
|
intersectWith(Assertions $other): self
Deprecated
use union() or intersect() instead
|
#
|
public
|
union(Assertions $other): self
|
#
|
public
|
intersect(Assertions $other): self
|
#
|
public
static
|
createEmpty(): self
|
#
|
public
static
|
createFromResolvedPhpDocBlock(ResolvedPhpDocBlock $phpDocBlock): self
|
#
|