-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Psalm crashing during analysis #11363
Comments
Hey @cseufert, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug. |
I have run with --threads=0 and still crashes, with slightly different error:
|
No idea why this example crashes psalm, but only when run in the context of my project |
I found these snippets: https://psalm.dev/r/15a8065a34<?php
namespace Modd\Engine\Plugins\ServerDate;
use Psr\Http\Message\ResponseInterface;
class HttpApi
{
/**
* @url /
* @return bool|string
* @throws \Exception
*/
static function serverDate(ResponseInterface $response)
{
$now = round(1000 * microtime(true));
$res = $response->withHeader('Content-Type', 'application/json');
if (filter_input(INPUT_GET, 'time')) {
$res->getBody()->write($now);
return $res;
}
$out = file_get_contents(
ME_DIR .
implode(DIRECTORY_SEPARATOR, [
'',
'plugin',
'moddeng',
'serverdate',
'js',
'serverdate.js',
]),
);
$out .= "($now);";
$res->getBody()->write($out);
return $res;
}
}
|
Fixed in the next release. |
I'm unsure if it's related, but the latest versions (since 6.9.1 ?) recently started crashing in the pipeline.
|
That seems like an issue with your composer packages, you've likely installed sebastian/diff v7, which is not compatible with php 8.2. |
Thanks, you're right. That was the issue. |
Getting a crash during analysis running both psalm and psalter. Not sure what to try, running with -d opcache.enable=0 doesnt help either, I am running in PHP 8.4.4
The text was updated successfully, but these errors were encountered: