rtckit/php-pcap-ffi

View on GitHub
psalm.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<psalm
  totallyTyped="false"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="https://getpsalm.org/schema/config"
  xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
  <projectFiles>
    <directory name="src" />
    <ignoreFiles>
      <directory name="vendor" />
    </ignoreFiles>
  </projectFiles>

  <issueHandlers>
    <UndefinedMethod>
      <errorLevel type="suppress">
        <referencedMethod name="FFI::pcap_lib_version" />
        <referencedMethod name="FFI::pcap_findalldevs" />
        <referencedMethod name="FFI::pcap_freealldevs" />
        <referencedMethod name="FFI::pcap_create" />
        <referencedMethod name="FFI::pcap_set_snaplen" />
        <referencedMethod name="FFI::pcap_set_promisc" />
        <referencedMethod name="FFI::pcap_set_immediate_mode" />
        <referencedMethod name="FFI::pcap_set_timeout" />
        <referencedMethod name="FFI::pcap_setnonblock" />
        <referencedMethod name="FFI::pcap_activate" />
        <referencedMethod name="FFI::pcap_get_selectable_fd" />
        <referencedMethod name="FFI::pcap_inject" />
        <referencedMethod name="FFI::pcap_next_ex" />
        <referencedMethod name="FFI::pcap_compile" />
        <referencedMethod name="FFI::pcap_setfilter" />
        <referencedMethod name="FFI::pcap_close" />
        <referencedMethod name="FFI::pcap_geterr" />
      </errorLevel>
    </UndefinedMethod>

  </issueHandlers>
</psalm>