title: $document->addStyleSheet deprecated
body: <p>In my Joomla component i add a style sheet according to phpstorm is $document->addStyleSheet deprecated. </p>
  
  <p>This is the code i use:</p>
  
  <pre><code>$uri = JUri::base();
  $document = JFactory::getDocument();
  
  $document-&gt;addStyleSheet(JUri::base() .  "components/com_exampe/views/stats/tmpl/style.css");
  </code></pre>
  
  <p>I also tryed this code:</p>
  
  <pre><code>JHtml::stylesheet('com_hccxmlkadernet/views/statistiek/tmpl/style.css', array(), true);
  </code></pre>
  
  <p>But thats also deprecated </p>
  
  <p>Can some one tell what te correct way is to do this ?</p>