<?xml version="1.0"?> <psalm name="SimpleSAMLphp" useDocblockTypes="true" totallyTyped="false" hideExternalErrors="true" allowStringToStandInForClass="true" > <projectFiles> <directory name="lib/SimpleSAML" /> <directory name="modules/admin" /> <directory name="modules/core" /> <directory name="modules/cron" /> <directory name="modules/exampleauth" /> <directory name="modules/multiauth" /> <directory name="modules/portal" /> <directory name="modules/saml" /> <directory name="tests" /> <!-- Ignore certain directories --> <ignoreFiles> <directory name="vendor" /> </ignoreFiles> </projectFiles> <issueHandlers> <LessSpecificReturnType errorLevel="info" /> <!-- level 3 issues - slightly lazy code writing, but probably low false-negatives --> <DeprecatedClass errorLevel="info" /> <DeprecatedMethod errorLevel="info" /> <MissingClosureReturnType errorLevel="info" /> <MissingReturnType errorLevel="info" /> <MissingPropertyType errorLevel="info" /> <InvalidDocblock errorLevel="info" /> <MisplacedRequiredParam errorLevel="info" /> <PropertyNotSetInConstructor errorLevel="info" /> <MissingConstructor errorLevel="info" /> <MissingClosureParamType errorLevel="info" /> <MissingParamType errorLevel="info" /> <UnusedClass errorLevel="info" /> <PossiblyUnusedMethod errorLevel="info" /> <!-- Ignore these errors until we are fully typehinted --> <DocblockTypeContradiction errorLevel="suppress" /> <RedundantConditionGivenDocblockType errorLevel="suppress" /> <!-- Ignore UnresolvableInclude on CLI-scripts --> <UnresolvableInclude> <errorLevel type="suppress"> <file name="bin/*.php" /> <file name="lib/SimpleSAML/Module.php" /> <file name="lib/SimpleSAML/XHTML/Template.php" /> <file name="modules/*/bin/*.php" /> <file name="tests/bootstrap.php" /> <file name="tests/routers/configLoader.php" /> </errorLevel> </UnresolvableInclude> <!-- Ignore MissingFile on www-scripts - Remove for 2.0 --> <MissingFile> <errorLevel type="suppress"> <file name="www/*.php" /> <file name="modules/*/www/*.php" /> </errorLevel> </MissingFile> <!-- Suppress PHPunit-issue --> <PropertyNotSetInConstructor> <errorLevel type="suppress"> <directory name="tests" /> </errorLevel> </PropertyNotSetInConstructor> <!-- Suppress PHPunit-issue --> <InternalMethod> <errorLevel type="suppress"> <directory name="tests" /> </errorLevel> </InternalMethod> </issueHandlers> <stubs> <file name="vendor/simplesamlphp/simplesamlphp-test-framework/stubs/krb5.php" /> <file name="vendor/simplesamlphp/simplesamlphp-test-framework/stubs/memcache.php" /> <file name="vendor/simplesamlphp/simplesamlphp-test-framework/stubs/memcached.php" /> <file name="vendor/simplesamlphp/simplesamlphp-test-framework/stubs/predis.php" /> </stubs> </psalm>