イライラ 素の PhpStorm でイラっとくる箇所といえばダントツ、PHPUnit のモックあたりですよね。こう書かないといけないの。 $connector = new SomeMiddlewareProcess(); /** @var MiddlewareInterface|\PHPUnit_Framework_MockObject_MockObject $processor */ $processor = $this->createMock(MiddlewareInterface::class); $connector->setProcessor($processor); setProcessor の引数定義に MiddlewareInterface のタイプヒント付いてて、docコメントがないと MockObject 型だぜ間違ってるYo! って警告にされちゃうやつ。 最近だと a