vimeo/psalm

Notice in php 8.1 autoloading causes psalm to fatal error

開放

#7,691 建立於 2022年2月18日

 (11 則留言) (2 個反應) (0 位負責人)PHP (668 個分叉)batch import
Help wantedenhancement

倉庫指標

星標
 (5,369 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

If any autoloaded files (in libraries) fire the notice:

Return type of Class:method() should either be compatible with Class::method: OtherClass, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in FILE:LINE in /app/vendor/vimeo/psalm/src/Psalm/Internal/ErrorHandler.php:66

then psalm fails to run any analysis at all. Obviously, libraries should update their code, but psalm should still be usable.

Psalm is installed via composer at version 4.20.0

貢獻者指南