mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix #4874 - remove strok stub
This commit is contained in:
parent
7ddec46e76
commit
9405773882
@ -238,7 +238,7 @@ class Algebra
|
||||
}
|
||||
|
||||
foreach ($clauses as $clause) {
|
||||
if (!$clause->reconcilable) {
|
||||
if (!$clause->reconcilable || count($clause->possibilities) !== 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -248,7 +248,7 @@ class Algebra
|
||||
}
|
||||
|
||||
// if there's only one possible type, return it
|
||||
if (count($clause->possibilities) === 1 && count($possible_types) === 1) {
|
||||
if (count($possible_types) === 1) {
|
||||
$possible_type = array_pop($possible_types);
|
||||
|
||||
if (isset($truths[$var]) && !isset($clause->redefined_vars[$var])) {
|
||||
@ -264,7 +264,7 @@ class Algebra
|
||||
|
||||
$active_truths[$var][count($truths[$var]) - 1] = [$possible_type];
|
||||
}
|
||||
} elseif (count($clause->possibilities) === 1) {
|
||||
} else {
|
||||
// if there's only one active clause, return all the non-negation clause members ORed together
|
||||
$things_that_can_be_said = array_filter(
|
||||
$possible_types,
|
||||
|
@ -807,15 +807,6 @@ function strrchr(string $haystack, string $needle) {}
|
||||
*/
|
||||
function strrev(string $string): string {}
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
* @return string|false
|
||||
* @psalm-ignore-falsable-return
|
||||
*
|
||||
* @psalm-flow ($string) -> return
|
||||
*/
|
||||
function strtok(string $str, string $token) {}
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user