Dmitry Patsura

Results 93 issues of Dmitry Patsura

``` php function test() { if ($a == 1) { return true; } return false; } ``` Need to be ``` php function test() { return ($a == 1); }...

help wanted
feature request
analyzer

``` php class A { public function(B $b = null) { if (!empty($b)) { } } } ```

feature request
analyzer

Example to review ``` php class Test { /** * @return bool */ public function returnTrue() { $a = 5; $b = &$a; $a = 0; return 1 / $b;...

compiler

``` php $a = 1; unset($a); var_dump($a); // Undefined? ```

help wanted
compiler

Maybe this will be helpfull to detect some bugs Super referenced variables after cycles or etc

feature request
compiler

Seems very epic task :)

feature request
compiler

help wanted
feature request

``` php function ($a) { return $a(); } ``` Suggest ``` php function (callable $a) { ``` do the same for array and objects.

help wanted
feature request
analyzer

Run: `./bin/phpsa check src/` and try to fix notices. (or create a bug issue if it's a bug)

help wanted
good first issue

Example projects https://github.com/codeclimate/codeclimate-phpcodesniffer https://github.com/codeclimate/cc-php-test-reporter-sandbox @todo need more info

help wanted
feature request