Skip to content

feat: mail snippets #4690

feat: mail snippets

feat: mail snippets #4690

Triggered via pull request October 17, 2024 17:08
Status Failure
Total duration 2m 15s
Artifacts

psalm-matrix.yml

on: pull_request
Matrix: static-analysis
static-psalm-analysis-summary
5s
static-psalm-analysis-summary
Fit to window
Zoom out
Zoom in

Annotations

8 errors
InvalidDocblock: lib/Db/SnippetShare.php#L24
lib/Db/SnippetShare.php:24:7: InvalidDocblock: Badly-formatted @method string setShareWith((string $shareWith) - Psalm\Exception\TypeParseTreeException: Unterminated parentheses in phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Type/TypeParser.php:174 Stack trace: #0 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeDocblockParser.php(280): Psalm\Internal\Type\TypeParser::getTypeFromTree(Object(Psalm\Internal\Type\ParseTree\EncapsulationTree), Object(Psalm\Codebase)) #1 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeNodeScanner.php(277): Psalm\Internal\PhpVisitor\Reflector\ClassLikeDocblockParser::parse(Object(_HumbugBox7ff99e199a36\PhpParser\Node\Stmt\Class_), Object(_HumbugBox7ff99e199a36\PhpParser\Comment\Doc), Object(Psalm\Aliases)) #2 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/PhpVisitor/ReflectorVisitor.php(116): Psalm\Internal\PhpVisitor\Reflector\ClassLikeNodeScanner->start(Object(_HumbugBox7ff99e199a36\PhpParser\Node\Stmt\Class_)) #3 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(176): Psalm\Internal\PhpVisitor\ReflectorVisitor->enterNode(Object(_HumbugBox7ff99e199a36\PhpParser\Node\Stmt\Class_)) #4 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(105): _HumbugBox7ff99e199a36\PhpParser\NodeTraverser->traverseArray(Array) #5 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(196): _HumbugBox7ff99e199a36\PhpParser\NodeTraverser->traverseNode(Object(_HumbugBox7ff99e199a36\PhpParser\Node\Stmt\Namespace_)) #6 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(85): _HumbugBox7ff99e199a36\PhpParser\NodeTraverser->traverseArray(Array) #7 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Scanner/FileScanner.php(51): _HumbugBox7ff99e199a36\PhpParser\NodeTraverser->traverse(Array) #8 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Codebase/Scanner.php(395): Psalm\Internal\Scanner\FileScanner->scan(Object(Psalm\Codebase), Object(Psalm\Storage\FileStorage), false, Object(Psalm\Progress\LongProgress)) #9 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Codebase/Scanner.php(544): Psalm\Internal\Codebase\Scanner->scanFile('/home/runner/ac...', Array, true) #10 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Codebase/Scanner.php(307): Psalm\Internal\Codebase\Scanner->scanAPath(3087, '/home/runner/ac...') #11 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Codebase/Scanner.php(220): Psalm\Internal\Codebase\Scanner->scanFilePaths(1) #12 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Codebase.php(385): Psalm\Internal\Codebase\Scanner->scanFiles(Object(Psalm\Internal\Codebase\ClassLikes), 1) #13 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php(340): Psalm\Codebase->scanFiles(1) #14 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/src/Psalm/Internal/Cli/Psalm.php(278): Psalm\Internal\Analyzer\ProjectAnalyzer->check('/home/runner/ac...', true) #15 phar:///home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar/psalm(7): Psalm\Internal\Cli\Psalm::run(Array) #16 /home/runner/actions-runner/_work/mail/mail/vendor/psalm/phar/psalm.phar(14): require('phar:///home/ru...') #17 /home/runner/actions-runner/_work/mail/mail/vendo
UndefinedMagicMethod: lib/Db/SnippetShare.php#L39
lib/Db/SnippetShare.php:39:21: UndefinedMagicMethod: Magic method OCA\Mail\Db\SnippetShare::gettype does not exist (see https://psalm.dev/219)
UndefinedMagicMethod: lib/Db/SnippetShare.php#L40
lib/Db/SnippetShare.php:40:26: UndefinedMagicMethod: Magic method OCA\Mail\Db\SnippetShare::getsharewith does not exist (see https://psalm.dev/219)
UndefinedMagicMethod: lib/Db/SnippetShare.php#L41
lib/Db/SnippetShare.php:41:26: UndefinedMagicMethod: Magic method OCA\Mail\Db\SnippetShare::getsnippetid does not exist (see https://psalm.dev/219)
InvalidReturnType: lib/Db/SnippetShareMapper.php#L31
lib/Db/SnippetShareMapper.php:31:13: InvalidReturnType: The declared return type 'OCA\Mail\Db\Snippet' for OCA\Mail\Db\SnippetShareMapper::find is incorrect, got 'OCA\Mail\Db\SnippetShare' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Db/SnippetShareMapper.php#L42
lib/Db/SnippetShareMapper.php:42:10: InvalidReturnStatement: The inferred type 'OCA\Mail\Db\SnippetShare' does not match the declared return type 'OCA\Mail\Db\Snippet' for OCA\Mail\Db\SnippetShareMapper::find (see https://psalm.dev/128)
static-psalm-analysis dev-master
Process completed with exit code 2.
static-psalm-analysis-summary
Process completed with exit code 1.