-
Notifications
You must be signed in to change notification settings - Fork 653
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
Using psalm with non-composer projects #3719
Comments
Hey @prabhu, can you reproduce the issue on https://psalm.dev ? |
Have you tried running with |
It ran for an hour but didn't produce psalm.xml. What is that flag supposed to do? |
It's supposed to produce a lot of debug output - basically a line for every line Psalm analyzes. Usually the last log entry points to the line in your source code that makes Psalm crash. |
Reproduced with https://psalm.dev/r/7abe81ec41 /**
* Retrieves reference to a doctype of a certain name
* @note This function resolves aliases
* @note When possible, use the more fully-featured make()
* @param $doctype Name of doctype
* @return Editable doctype object
*/
public function get($doctype) {
// ....... |
I found these snippets: https://psalm.dev/r/7abe81ec41<?php
/**
* @psalm-suppress UndefinedDocblockClass
* @psalm-suppress InvalidReturnType
* @return Editable
*/
function get() {}
clone get();
|
Thanks. Now I have a hang of how this tool works so can file better defects in the future. |
I am trying to scan an old php project with psalm. I performed the following steps:
composer --init
composer require --dev vimeo/psalm
vendor/bin/psalm --init
Init operation leads to the below error.
Any ideas?
The text was updated successfully, but these errors were encountered: