title: Laravel Swagger PHP Couldn't find constant array
body: <ul>
  <li>darkaonline/l5-swagger: 8.0.2</li>
  <li>PHP Version: 7.3.13</li>
  <li>zircote/swagger-php: 3.1.0</li>
  <li>OS: Windows</li>
  </ul>
  <p>I created a <code>Contract ref</code> object.
  Now in my <code>ContractController </code>I want to list an array of contracts.
  How can I do it?
  I got this error <code>Couldn't find constant array</code> when trying to add <code>type=array</code> in <code>OA\Items</code></p>
  <pre class="lang-php prettyprint-override"><code>/**
   * @OA\Info(title=&quot;Contract API&quot;, version=&quot;1&quot;)
   */
  
  class ContractController extends Controller
  {
      /**
       * @OA\Post(
       *     path=&quot;/api/v1/contract/list&quot;,
       *     tags={&quot;contact&quot;},
       *     summary=&quot;List Contract&quot;,
       *     operationId=&quot;list&quot;,
       *     @OA\Parameter(
       *         name=&quot;keyword&quot;,
       *         in=&quot;path&quot;,
       *         description=&quot;keyword to search contracts&quot;,
       *         required=false,
       *         @OA\Schema(
       *             type=&quot;string&quot;
       *         )
       *     ),
       *     @OA\Parameter(
       *         name=&quot;lang_code&quot;,
       *         in=&quot;path&quot;,
       *         description=&quot;lang_code define language client used&quot;,
       *         required=false,
       *         @OA\Schema(
       *             type=&quot;string&quot;,
       *         )
       *     ),
       *     @OA\Response(
       *         response=200,
       *         description=&quot;successful&quot;,
       *         @OA\JsonContent(
       *              @OA\Items(
       *                  type=array, #This is where I got the error
       *                  ref=&quot;#/components/schemas/Contract&quot;
       *              )
       *         )
       *     ),
       *     @OA\Response(
       *         response=400,
       *         description=&quot;Wrong&quot;
       *     )
       * )
       */
      public function list(Request $request)
      {
          $contracts = Contract::factory()-&gt;count(10)-&gt;make();
          return response()-&gt;json([
              'message' =&gt; 'good',
              'contracts' =&gt; $contracts
          ], 200);
      }
  }
  </code></pre>
  <pre><code>/**
   * @OA\Schema(
   *     description=&quot;Contract model&quot;,
   *     type=&quot;object&quot;,
   *     title=&quot;Contract model&quot;
   * )
   */
  class Contract extends Model
  {
      use HasFactory;
  
      /**
       * The unique identifier of a product in our catalog.
       *
       * @var integer
       * @OA\Property(format=&quot;int64&quot;, example=1)
       */
      public $id;
  
      /**
       * @var string
       * @OA\Property(format=&quot;string&quot;, example=&quot;contract 001&quot;)
       */
      public $contract_title;
  }
  </code></pre>