Found this while deciding whether to add similar functionality in another package. ```php /** * @param array<int, int> $arr */ function foo(array $arr) : int { $a = array_pop($arr); if ($arr) { return $a; } return 0; } ``` Expected: no issue Actual: `Function foo() should return int but returns int|null` https://phpstan.org/r/693d212d-fec7-45fd-bce5-7bcf7c01afff