如何让诗篇推断PHP中100%的代码基

如何让诗篇推断PHP中100%的代码基,php,psalm-php,Php,Psalm Php,目前正在运行的诗篇给了我: 诗篇能够推断出94.8665%的代码基的类型 如何在无法推断类型的情况下进行调试?我想要100%的类型保险 这是我的psalm.xml.distconfig: <?xml version="1.0"?> <psalm errorLevel="4" resolveFromConfigFile="true" totallyTyped="true"

目前正在运行的诗篇给了我:

诗篇能够推断出94.8665%的代码基的类型

如何在无法推断类型的情况下进行调试?我想要100%的类型保险

这是我的
psalm.xml.dist
config:

<?xml version="1.0"?>
<psalm
    errorLevel="4"
    resolveFromConfigFile="true"
    totallyTyped="true"
    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>
            <file name="src/Kernel.php"/>
            <directory name="vendor" />
        </ignoreFiles>
    </projectFiles>
</psalm>

感谢您的支持。

看起来这很“简单”。只需将
errorLevel
降低到1,并解决所有问题。总共有500多个

只要我点击
errorLevel=1
我的代码库就已经100%推断出来了

获得的徽章:

  • 类型狂人
  • 全类型