Reports cases where an array is created according to a predefined array shape but does not provide all the required keys/entries as defined by the shape.

This inspection helps you identify scenarios where an array instantiation might lead to runtime issues due to missing required entries, ensuring better code consistency and adherence to the defined structure.

埋め込まれたコードスニペット:


      function connect(#[ArrayShape([
          'path' => 'string',
          'host' => [
              'name' => 'string',
              'port' => 'int'
          ]
      ])] array $options = []) { };
      connect(['host' => ['name' => 'localhost', 'port' => 1234]]); // 'path' キーがありません