Daimona

Results 37 issues of Daimona

Description (screenshot): -- I'm unsure if this would qualify as a bug report or a feature request. Anyway. In PHPUnit tests, I commonly see and use the following pattern: ```php...

| Subject | Details | | :------------- | :---------------------------------------------------------------------------- | | Plugin | Php Inspections (EA Extended), 4.0.7.1 | | Language level | PHP 7.2 | Current behaviour -- For...

My Environment (version of the project, operating system, or hardware): Any environment will do. I'm using phpda 2.0.2 from composer. My `phpda.yml`: Any config file, e.g. the default. When I...

On phan 5.1.0: ```php

enhancement

On phan 5.3.2, if you have `'dead_code_detection' => true`, unused parameters in overridden methods still raise a warnings. I'm not sure this is wanted, since you can't just omit them....

Seen on phan 5.3.2 with the following config: ``` [ 'directory_list' => [ 'src' ], 'plugins' => [ 'UnknownElementTypePlugin', ], ] ``` If a base class (or interface) declares a...

When passing Suggestions to emitIssue, the suggestion is later surrounded by parentheses by all printers (and IssueInstance::getMessageAndMaybeSuggestion). This can be problematic if the suggestion message already has parentheses (especially if...

enhancement

Snippet: ```php function testGlobal() { global $g2; $g2 = 'foo'; doStuff(); '@phan-debug-var $g2'; } function doStuff() { global $g2; $g2 = true; } ``` > PhanDebugAnnotation @phan-debug-var requested for variable...

enhancement
redundant condition detection