Open PetrKaterinak opened 1 year ago
How should this bundle make the connection between the two calls? Not sure if this is possible (without help from the library itself: does the code have according Psalm/PHPStan annotations?).
Apart from that, I think we can only rely on the type information from PhpStorm here, so this should probably be fixed in PhpStorm.
Current behaviour
As salaries are not empty, it always must have ->first() item, so null pointer exception never happens
Environment details
PHP Storm 2023.1.3