Skip to content

Commit

Permalink
Remove IsStringFunctionTypeSpecifyingExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 3, 2022
1 parent 1210483 commit 98ad726
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 51 deletions.
6 changes: 1 addition & 5 deletions conf/config.neon
Expand Up @@ -137,6 +137,7 @@ parameters:
- ../stubs/Exception.stub
- ../stubs/arrayFunctions.stub
- ../stubs/core.stub
- ../stubs/typeCheckingFunctions.stub
earlyTerminatingMethodCalls: []
earlyTerminatingFunctionCalls: []
memoryLimitFile: %tmpDir%/.memory_limit
Expand Down Expand Up @@ -1653,11 +1654,6 @@ services:
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension

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

-
class: PHPStan\Type\Php\IsSubclassOfFunctionTypeSpecifyingExtension
tags:
Expand Down
46 changes: 0 additions & 46 deletions src/Type/Php/IsStringFunctionTypeSpecifyingExtension.php

This file was deleted.

10 changes: 10 additions & 0 deletions stubs/typeCheckingFunctions.stub
@@ -0,0 +1,10 @@
<?php

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

}

0 comments on commit 98ad726

Please sign in to comment.