title: PhpStorm and phpDocumentor
body: <p>For several hours trying to add phpDocumentor to PhpStorm , I used a few instruction:</p>
  
  <p><a href="http://kevinquillen.com/ide/2015/02/01/setting-up-phpdocumentor-in-phpstorm-8" rel="nofollow">http://kevinquillen.com/ide/2015/02/01/setting-up-phpdocumentor-in-phpstorm-8</a></p>
  
  <p>Now it looks like
  <a href="http://i.stack.imgur.com/lagg6.png" rel="nofollow">this</a></p>
  
  <p>But when I run phpdoc I got this :</p>
  
  <pre><code>C:\xampp\php\php.exe phpdoc -d c:\dokumentacja_php\folder_zrodlowy -t c:\dokumentacja_php\folder_docelowy
  Collecting files .. OK
  Initializing parser .. OK
  Parsing files
  Parsing C:\dokumentacja_php\folder_zrodlowy\Test.php
  Storing cache in "C:\dokumentacja_php\folder_docelowy" .. OK
  Load cache                                                         ..    0.010s
  Preparing template "clean"                                         ..    0.019s
  Preparing 17 transformations                                       ..    0.000s
  Build "elements" index                                             ..    0.000s
  Replace textual FQCNs with object aliases                          ..    0.000s
  Resolve @link and @see tags in descriptions                        ..    0.000s
  Enriches inline example tags with their sources                    ..    0.000s
  Build "packages" index                                             ..    0.002s
  Build "namespaces" index and add namespaces to "elements"          ..    0.000s
  Collect all markers embedded in tags                               ..    0.000s
  Transform analyzed project into artifacts                          .. 
  Applying 17 transformations
    Initialize writer "phpDocumentor\Plugin\Core\Transformer\Writer\FileIo"
    Initialize writer "phpDocumentor\Plugin\Twig\Writer\Twig"
    Initialize writer "phpDocumentor\Plugin\Graphs\Writer\Graph"
    Execute transformation using writer "FileIo"
    Execute transformation using writer "FileIo"
    Execute transformation using writer "FileIo"
    Execute transformation using writer "FileIo"
    Execute transformation using writer "FileIo"
    Execute transformation using writer "twig"
    Execute transformation using writer "twig"
    Execute transformation using writer "twig"
  [2016-01-17 02:59:54] phpDocumentor.ALERT: Fatal Error (E_ERROR): Uncaught TypeError: Argument 1 passed to Monolog\ErrorHandler::handleException() must be an instance of Exception, instance of Error given in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\monolog\monolog\src\Monolog\ErrorHandler.php:122 Stack trace: #0 [internal function]: Monolog\ErrorHandler-&gt;handleException(Object(Error)) #1 {main}   thrown {"code":1,"message":"Uncaught TypeError: Argument 1 passed to Monolog\\ErrorHandler::handleException() must be an instance of Exception, instance of Error given in C:\\xampp\\php\\pear\\phpDocumentor-2.8.5\\phpDocumentor-2.8.5\\vendor\\monolog\\monolog\\src\\Monolog\\ErrorHandler.php:122\nStack trace:\n#0 [internal function]: Monolog\\ErrorHandler-&gt;handleException(Object(Error))\n#1 {main}\n  thrown","file":"C:\\xampp\\php\\pear\\phpDocumentor-2.8.5\\phpDocumentor-2.8.5\\vendor\\monolog\\monolog\\src\\Monolog\\ErrorHandler.php","line":122} []
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/&gt;
      &lt;meta charset="utf-8"/&gt;
      &lt;title&gt;API Documentation&lt;/title&gt;
      &lt;meta name="author" content=""/&gt;
      &lt;meta name="description" content=""/&gt;
  
      &lt;link href="../css/bootstrap-combined.no-icons.min.css" rel="stylesheet"&gt;
      &lt;link href="../css/font-awesome.min.css" rel="stylesheet"&gt;
      &lt;link href="../css/prism.css" rel="stylesheet" media="all"/&gt;
      &lt;link href="../css/template.css" rel="stylesheet" media="all"/&gt;
  
      &lt;!--[if lt IE 9]&gt;
      &lt;script src="../js/html5.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
      &lt;script src="../js/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
      &lt;script src="../js/ui/1.10.4/jquery-ui.min.js"&gt;&lt;/script&gt;
      &lt;script src="../js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;script src="../js/jquery.smooth-scroll.js"&gt;&lt;/script&gt;
      &lt;script src="../js/prism.min.js"&gt;&lt;/script&gt;
      &lt;!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit--&gt;
      &lt;script type="text/javascript"&gt;
      function loadExternalCodeSnippets() {
          Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
              var src = pre.getAttribute('data-src');
              var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
              var language = 'php';
  
              var code = document.createElement('code');
              code.className = 'language-' + language;
  
              pre.textContent = '';
  
              code.textContent = 'Loading…';
  
              pre.appendChild(code);
  
              var xhr = new XMLHttpRequest();
  
              xhr.open('GET', src, true);
  
              xhr.onreadystatechange = function () {
                  if (xhr.readyState == 4) {
  
                      if (xhr.status &lt; 400 &amp;&amp; xhr.responseText) {
                          code.textContent = xhr.responseText;
  
                          Prism.highlightElement(code);
                      }
                      else if (xhr.status &gt;= 400) {
                          code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
                      }
                      else {
                          code.textContent = '✖ Error: File does not exist or is empty';
                      }
                  }
              };
  
              xhr.send(null);
          });
      }
  
      $(document).ready(function(){
          loadExternalCodeSnippets();
      });
      $('#source-view').on('shown', function () {
          loadExternalCodeSnippets();
      })
  &lt;/script&gt;
  
      &lt;link rel="shortcut icon" href="../images/favicon.ico"/&gt;
      &lt;link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/&gt;
      &lt;link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/&gt;
      &lt;link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div class="navbar navbar-fixed-top"&gt;
      &lt;div class="navbar-inner"&gt;
          &lt;div class="container"&gt;
              &lt;a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt;
                  &lt;i class="icon-ellipsis-vertical"&gt;&lt;/i&gt;
              &lt;/a&gt;
              &lt;a class="brand" href="../index.html"&gt;API Documentation&lt;/a&gt;
  
              &lt;div class="nav-collapse"&gt;
                  &lt;ul class="nav pull-right"&gt;
                                          &lt;li class="dropdown" id="charts-menu"&gt;
                          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;
                              Charts &lt;b class="caret"&gt;&lt;/b&gt;
                          &lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;
                                  &lt;a href="../graphs/class.html"&gt;
                                      &lt;i class="icon-list-alt"&gt;&lt;/i&gt;&amp;#160;Class hierarchy diagram
                                  &lt;/a&gt;
                              &lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li class="dropdown" id="reports-menu"&gt;
                          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;
                              Reports &lt;b class="caret"&gt;&lt;/b&gt;
                          &lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;
                                  &lt;a href="../reports/errors.html"&gt;
                                                                                                                                                                                          &lt;i class="icon-list-alt"&gt;&lt;/i&gt;&amp;#160;Errors &lt;span class="label label-info pull-right"&gt;5&lt;/span&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li&gt;
                                  &lt;a href="../reports/markers.html"&gt;
                                                                                                                                                                                          &lt;i class="icon-list-alt"&gt;&lt;/i&gt;&amp;#160;Markers &lt;span class="label label-info pull-right"&gt;0&lt;/span&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                              &lt;li&gt;
                                  &lt;a href="../reports/deprecated.html"&gt;
                                                                                                              &lt;i class="icon-list-alt"&gt;&lt;/i&gt;&amp;#160;Deprecated &lt;span class="label label-info pull-right"&gt;0&lt;/span&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!--&lt;div class="go_to_top"&gt;--&gt;
      &lt;!--&lt;a href="#___" style="color: inherit"&gt;Back to top&amp;#160;&amp;#160;&lt;i class="icon-upload icon-white"&gt;&lt;/i&gt;&lt;/a&gt;--&gt;
      &lt;!--&lt;/div&gt;--&gt;
  &lt;/div&gt;
  
  &lt;div id="___" class="container-fluid"&gt;
          &lt;section class="row-fluid"&gt;
          &lt;div class="span2 sidebar"&gt;
                                  &lt;div class="accordion" style="margin-bottom: 0"&gt;
          &lt;div class="accordion-group"&gt;
              &lt;div class="accordion-heading"&gt;
                                      &lt;a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-734108015"&gt;&lt;/a&gt;
                                  &lt;a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0"&gt;\&lt;/a&gt;
              &lt;/div&gt;
              &lt;div id="namespace-734108015" class="accordion-body collapse in"&gt;
                  &lt;div class="accordion-inner"&gt;
  
  
                      &lt;ul&gt;
                                                                                                      &lt;li class="class"&gt;&lt;a href="../classes/Test.html"&gt;Test&lt;/a&gt;&lt;/li&gt;
                                              &lt;/ul&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
          &lt;/div&gt;
      &lt;/section&gt;
      &lt;section class="row-fluid"&gt;
          &lt;div class="span10 offset2"&gt;
              &lt;div class="row-fluid"&gt;
                  &lt;div class="span8 content class"&gt;
                      &lt;nav&gt;
                                                  &lt;a href="../namespaces/default.html"&gt;\&lt;/a&gt; &lt;i class="icon-level-up"&gt;&lt;/i&gt;
                                              &lt;/nav&gt;
                      &lt;a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"&gt;&lt;i class="icon-code"&gt;&lt;/i&gt;&lt;/a&gt;
  
                      &lt;h1&gt;&lt;small&gt;\&lt;/small&gt;Test&lt;/h1&gt;
                      &lt;p&gt;&lt;em&gt;Created by PhpStorm.&lt;/em&gt;&lt;/p&gt;
  
  Notice: Array to string conversion in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\erusev\parsedown\Parsedown.php on line 1405
  
  Notice: Undefined property: Parsedown::$Array in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\erusev\parsedown\Parsedown.php on line 1405
  
  Fatal error: Uncaught TypeError: Argument 1 passed to Monolog\ErrorHandler::handleException() must be an instance of Exception, instance of Error given in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\monolog\monolog\src\Monolog\ErrorHandler.php:122
  Stack trace:
  #0 [internal function]: Monolog\ErrorHandler-&gt;handleException(Object(Error))
  #1 {main}
    thrown in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\monolog\monolog\src\Monolog\ErrorHandler.php on line 122
  PHP Notice:  Array to string conversion in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\erusev\parsedown\Parsedown.php on line 1405
  PHP Notice:  Undefined property: Parsedown::$Array in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\erusev\parsedown\Parsedown.php on line 1405
  PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Monolog\ErrorHandler::handleException() must be an instance of Exception, instance of Error given in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\monolog\monolog\src\Monolog\ErrorHandler.php:122
  Stack trace:
  #0 [internal function]: Monolog\ErrorHandler-&gt;handleException(Object(Error))
  #1 {main}
    thrown in C:\xampp\php\pear\phpDocumentor-2.8.5\phpDocumentor-2.8.5\vendor\monolog\monolog\src\Monolog\ErrorHandler.php on line 122
  
  Process finished with exit code 255
  </code></pre>
  
  <p>Unfortunately, I do not know what I'm doing wrong . Did anyone have a similar problem ?</p>