-
Notifications
You must be signed in to change notification settings - Fork 655
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
Bug : Uncaught RuntimeException: PHP Error: Undefined offset: 0 on clean code #8141
Labels
Comments
I found these snippets: https://psalm.dev/r/c7e6b8bdcd<?php
/**
* Allow the setup page to load and perform its checks (including the check about the required extensions)
*/
if (!class_exists('DOMDocument'))
{
/**
* Class DOMDocument
*/
class DOMDocument {
function __construct(){throw new Exception('The dom extension is not enabled');}
}
}
/**
* Allow the setup page to load and perform its checks (including the check about the required extensions)
*/
if (!class_exists('DOMElement'))
{
/**
* Class DOMElement
*/
class DOMElement {
function __construct(){throw new Exception('The dom extension is not enabled');}
}
}
|
Psalm.dev returns
so it reproduce it too :) |
@AndrolGenhald looks like an attribute analysis issue, mind looking at it? |
orklah
added a commit
that referenced
this issue
Jun 26, 2022
Fix crash when redefining method with fewer params (fixes #8141).
Thanks ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this which looks like a bug on windows : when I run
vendor\bin\psalm --init
on a blank project with only psalm installed (latest version) an the following code I get an Error :Code :
Error :
Note : The same appear when I run psalm after having manually added a config file. Surprisingly enough, I get no Issue on the website : https://psalm.dev/r/c7e6b8bdcd
The text was updated successfully, but these errors were encountered: