Conversation
|
@prewk can we use We are getting errors when running phpstan level 6, like |
|
I'm trying to be a supportive but passive maintainer these days. Could you give me an opinion here, @t1sh0o? |
|
@zjbarg I don't think that adding getResult();
/**
* @return Result<array{report_document_id: string, url: string, compression_algorithm: string|null}, array{status:string}>
*/
function getResult(?string $algo = null): Result
{
return ok(['report_document_id' => '123', 'url' => 'https://example.com', 'compression_algorithm' => $algo]);
} |
|
@t1sh0o thanks for explaining. The issue that I'm dealing with is probably phpstan related. Here is an example: https://phpstan.org/r/317eb2b4-eed2-4032-a709-421fab6911f3 of a simpler one https://phpstan.org/r/0dd20e3c-358a-4363-87d9-6a5d5acbd303 |
No description provided.