title: Call to undefined method PhpOffice\PhpSpreadsheet\Spreadsheet::listWorksheetNames
body: <p>I want to list all sheets name from workbook, but i get the following error:</p>
  <p><code>Call to undefined method PhpOffice\PhpSpreadsheet\Spreadsheet::listWorksheetNames()</code></p>
  <p>Here is my code:</p>
  <pre><code>&lt;?php
  require_once('vendor/autoload.php');
  
  use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
  use PhpOffice\PhpSpreadsheet\IOFactory;
   
  $inputFileName = 'uploads/1.xlsx';
  $spreadsheet = IOFactory::load($inputFileName);
  $worksheetNames = $spreadsheet-&gt;listWorksheetNames();
  
  echo '&lt;h3&gt;Worksheet Names&lt;/h3&gt;';
  echo '&lt;ol&gt;';
  foreach ($worksheetNames as $worksheetName) {
      echo '&lt;li&gt;', $worksheetName, '&lt;/li&gt;';
  }
  echo '&lt;/ol&gt;';
  ?&gt;
  </code></pre>
  <p>I tried to repeat by: <a href="https://phpspreadsheet.readthedocs.io/en/latest/topics/reading-files/#reading-only-named-worksheets-from-a-file" rel="nofollow noreferrer">https://phpspreadsheet.readthedocs.io/en/latest/topics/reading-files/#reading-only-named-worksheets-from-a-file</a></p>
  <p>Where is my mistake?</p>