phpstan-phpunit
phpstan-phpunit copied to clipboard
suggest `assertArrayHasKey` after `assertTrue(isset($x))`
-$this->assertTrue(isset($anything["foo"]), "message");
+$this->assertArrayHasKey("foo", $anything, "message");
similar to AssertSameNullExpectedRule and others
could be auto-fixable.