title: Symfony 3.4: Error Expected type ... Found
body: <p>The following error was displayed in intelphense in VS Code.
  The same argument is passed in the parent controller, and some different actions do not give an error, so the cause is unknown.
  Only <code>$articleService</code> of <code>editAction()</code> has an error.<br />
  There is no error in <code>createAction()</code>.<br />
  Do you have any idea?</p>
  <p>Error</p>
  <pre><code>Expected type 'App\Ahi\Sp\AdminBundle\Model\Service\BrandService'.  
  Found 'App\Ahi\Sp\AdminBundle\Model\Service\ArticleService
  </code></pre>
  <p>ArticleController.php</p>
  <pre><code>    /**
       *
       * @Method(&quot;POST&quot;)
       * @Route(&quot;/{articleType}/&quot;, requirements={&quot;articleType&quot;=&quot;brandevent&quot;})
       *
       */
      public function createAction(Request $request, EcTrendTagService $ecTrendTagService, BrandService $brandService, ArticleService $articleService, $articleType)
      {
          return parent::newAndCreate($request, $ecTrendTagService, $brandService, $articleService, $articleType);
      }
  
      /**
       *
       * @Method(&quot;GET&quot;)
       * @Route(&quot;/{articleType}/{id}/edit&quot;, requirements={&quot;articleType&quot;=&quot;brandevent&quot;, &quot;id&quot;=&quot;\d+&quot;})
       *
       */
      public function editAction(Request $request, EcTrendTagService $ecTrendTagService, BrandService $brandService, ArticleService $articleService, $articleType, $id)
      {
          return parent::editAndUpdate($request, $ecTrendTagService, $brandService, $articleService, $articleType, $id);
      }
  </code></pre>
  <p>BaseArticleController.php</p>
  <pre><code>    protected function newAndCreate(Request $request, EcTrendTagService $ecTrendTagService, BrandService $brandService, ArticleService $articleService, $articleType)
      {...
      }
      protected function editAndUpdate(Request $request, EcTrendTagService $ecTrendTagService, $articleType, BrandService $brandService, ArticleService $articleService, $id)
      {...
      }
  </code></pre>
  <pre><code></code></pre>