Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1627,33 +1627,18 @@ services:
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension

-
class: PHPStan\Type\Php\IsNullFunctionTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension

-
class: PHPStan\Type\Php\IsArrayFunctionTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
arguments:
explicitMixed: %featureToggles.explicitMixedViaIsArray%

-
class: PHPStan\Type\Php\IsBoolFunctionTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension

-
class: PHPStan\Type\Php\IsCallableFunctionTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension

-
class: PHPStan\Type\Php\IsCountableFunctionTypeSpecifyingExtension
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension

-
class: PHPStan\Type\Php\IsResourceFunctionTypeSpecifyingExtension
tags:
Expand Down
45 changes: 0 additions & 45 deletions src/Type/Php/IsBoolFunctionTypeSpecifyingExtension.php

This file was deleted.

59 changes: 0 additions & 59 deletions src/Type/Php/IsCountableFunctionTypeSpecifyingExtension.php

This file was deleted.

46 changes: 0 additions & 46 deletions src/Type/Php/IsNullFunctionTypeSpecifyingExtension.php

This file was deleted.

26 changes: 26 additions & 0 deletions stubs/typeCheckingFunctions.stub
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,29 @@ function is_numeric(mixed $value): bool

}

/**
* @phpstan-assert-if-true null $value
* @phpstan-assert-if-false !null $value
*/
function is_null(mixed $value): bool
{

}

/**
* @phpstan-assert-if-true bool $value
* @phpstan-assert-if-false !bool $value
*/
function is_bool(mixed $value): bool
{

}

/**
* @phpstan-assert-if-true array<array-key, mixed>|\Countable $value
* @phpstan-assert-if-false !(array<array-key, mixed>|\Countable) $value
*/
function is_countable(mixed $value): bool
{

}