circles/tests/psalm-baseline.xml

425 строки
14 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.22.1@e9dad66e11274315dac27e08349c628c7d6a1a43">
<file src="lib/Activity/ProviderParser.php">
<TypeDoesNotContainType>
<code><![CDATA[str_starts_with($sK, '_')]]></code>
</TypeDoesNotContainType>
</file>
<file src="lib/Circles/FileSharingBroadcaster.php">
<InvalidScalarArgument>
<code><![CDATA[$share->getId()]]></code>
<code><![CDATA[$share->getId()]]></code>
</InvalidScalarArgument>
<TypeDoesNotContainType>
<code><![CDATA[!$sendPasswordByMail]]></code>
<code><![CDATA[$sendPasswordByMail]]></code>
</TypeDoesNotContainType>
<UndefinedClass>
<code><![CDATA[Notifications]]></code>
</UndefinedClass>
<UndefinedDocblockClass>
<code><![CDATA[$this->federationNotifications]]></code>
<code><![CDATA[Notifications]]></code>
</UndefinedDocblockClass>
<UndefinedInterfaceMethod>
<code><![CDATA[getLazyRootFolder]]></code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/Command/CirclesRemote.php">
<UndefinedMethod>
<code><![CDATA[setType]]></code>
</UndefinedMethod>
</file>
<file src="lib/Command/CirclesReport.php">
<UndefinedClass>
<code><![CDATA[IInteractiveShellClient]]></code>
</UndefinedClass>
</file>
<file src="lib/Command/CirclesTest.php">
<NullArgument>
<code><![CDATA[null]]></code>
</NullArgument>
<RedundantCondition>
<code><![CDATA[$compareToInitiator !== null]]></code>
<code><![CDATA[$compareToOwner !== null]]></code>
</RedundantCondition>
<TypeDoesNotContainNull>
<code><![CDATA[$owner === null]]></code>
</TypeDoesNotContainNull>
</file>
<file src="lib/Command/MembersAdd.php">
<UndefinedMethod>
<code><![CDATA[retrieveJson]]></code>
</UndefinedMethod>
</file>
<file src="lib/Command/MembersList.php">
<UndefinedInterfaceMethod>
<code><![CDATA[getInstance]]></code>
<code><![CDATA[getInstance]]></code>
<code><![CDATA[getInvitedBy]]></code>
<code><![CDATA[getOwner]]></code>
<code><![CDATA[getSingleId]]></code>
<code><![CDATA[getStatus]]></code>
<code><![CDATA[hasInvitedBy]]></code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/Db/CoreRequestBuilder.php">
<UndefinedClass>
<code><![CDATA[Connection]]></code>
</UndefinedClass>
<UndefinedMethod>
<code><![CDATA[dropTable]]></code>
<code><![CDATA[hasTable]]></code>
</UndefinedMethod>
</file>
<file src="lib/Db/FileSharesRequest.php">
<InvalidScalarArgument>
<code><![CDATA[self::SHARE_TYPE]]></code>
<code><![CDATA[self::SHARE_TYPE]]></code>
</InvalidScalarArgument>
</file>
<file src="lib/Db/MemberRequest.php">
<InvalidReturnStatement>
<code><![CDATA[$this->getItemsFromRequest($qb)]]></code>
<code><![CDATA[$this->getItemsFromRequest($qb)]]></code>
<code><![CDATA[$this->getItemsFromRequest($qb)]]></code>
<code><![CDATA[$this->getItemsFromRequest($qb)]]></code>
<code><![CDATA[$this->getItemsFromRequest($qb, true)]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[FederatedUser[]]]></code>
<code><![CDATA[Member[]]]></code>
<code><![CDATA[Member[]]]></code>
<code><![CDATA[Member[]]]></code>
<code><![CDATA[Member[]]]></code>
</InvalidReturnType>
</file>
<file src="lib/Db/TokensRequest.php">
<InvalidScalarArgument>
<code><![CDATA[$shareId]]></code>
<code><![CDATA[$shareId]]></code>
</InvalidScalarArgument>
<UndefinedClass>
<code><![CDATA[UniqueConstraintViolationException]]></code>
</UndefinedClass>
</file>
<file src="lib/FederatedItems/SharedItemsSync.php">
<UndefinedClass>
<code><![CDATA[CircleEventService]]></code>
</UndefinedClass>
<UndefinedDocblockClass>
<code><![CDATA[$this->circleEventService]]></code>
<code><![CDATA[CircleEventService]]></code>
</UndefinedDocblockClass>
</file>
<file src="lib/Migration/ImportOwncloudCustomGroups.php">
<MissingDependency>
<code><![CDATA[Share]]></code>
<code><![CDATA[Share]]></code>
</MissingDependency>
<UndefinedConstant>
<code><![CDATA[Share::SHARE_TYPE_CIRCLE]]></code>
</UndefinedConstant>
</file>
<file src="lib/Migration/Version0022Date20220526111723.php">
<UndefinedClass>
<code><![CDATA[Connection]]></code>
</UndefinedClass>
<UndefinedDocblockClass>
<code><![CDATA[$this->connection]]></code>
<code><![CDATA[Connection]]></code>
</UndefinedDocblockClass>
</file>
<file src="lib/Migration/Version0022Date20220526113601.php">
<UndefinedClass>
<code><![CDATA[Types]]></code>
</UndefinedClass>
</file>
<file src="lib/Model/BaseCircle.php">
<InvalidReturnStatement>
<code><![CDATA[$this->type]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[string]]></code>
</InvalidReturnType>
<RedundantCast>
<code><![CDATA[(array)self::CIRCLES_SETTINGS_DEFAULT]]></code>
</RedundantCast>
</file>
<file src="lib/Model/BaseMember.php">
<InvalidNullableReturnType>
<code><![CDATA[DeprecatedMember]]></code>
</InvalidNullableReturnType>
<NullableReturnStatement>
<code><![CDATA[self::fromArray(json_decode($json, true))]]></code>
</NullableReturnStatement>
</file>
<file src="lib/Model/Circle.php">
<LessSpecificImplementedReturnType>
<code><![CDATA[self]]></code>
</LessSpecificImplementedReturnType>
</file>
<file src="lib/Model/DavCard.php">
<InvalidScalarArgument>
<code><![CDATA[$this->get('addressBookId', $data)]]></code>
</InvalidScalarArgument>
</file>
<file src="lib/Model/Federated/RemoteInstance.php">
<LessSpecificImplementedReturnType>
<code><![CDATA[NCSignatory]]></code>
</LessSpecificImplementedReturnType>
</file>
<file src="lib/Model/FederatedLink.php">
<InvalidPropertyAssignmentValue>
<code><![CDATA[$circleUniqueId]]></code>
</InvalidPropertyAssignmentValue>
<InvalidReturnStatement>
<code><![CDATA[$this->circleUniqueId]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[string]]></code>
</InvalidReturnType>
<InvalidScalarArgument>
<code><![CDATA[$this->circleUniqueId]]></code>
</InvalidScalarArgument>
</file>
<file src="lib/Model/FederatedUser.php">
<InvalidReturnStatement>
<code><![CDATA[$arr]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[string[]]]></code>
</InvalidReturnType>
<LessSpecificImplementedReturnType>
<code><![CDATA[self]]></code>
</LessSpecificImplementedReturnType>
<MismatchingDocblockParamType>
<code><![CDATA[Circle|null]]></code>
</MismatchingDocblockParamType>
</file>
<file src="lib/Model/ManagedModel.php">
<UndefinedMethod>
<code><![CDATA[setBasedOn]]></code>
<code><![CDATA[setDisplayName]]></code>
<code><![CDATA[setInstance]]></code>
<code><![CDATA[setSingleId]]></code>
<code><![CDATA[setUserId]]></code>
<code><![CDATA[setUserType]]></code>
</UndefinedMethod>
</file>
<file src="lib/Model/Member.php">
<InvalidClass>
<code><![CDATA[$inheritedBy]]></code>
</InvalidClass>
<InvalidReturnStatement>
<code><![CDATA[$arr]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[string[]]]></code>
</InvalidReturnType>
<LessSpecificImplementedReturnType>
<code><![CDATA[self]]></code>
</LessSpecificImplementedReturnType>
</file>
<file src="lib/Model/Probes/BasicProbe.php">
<InvalidReturnType>
<code><![CDATA[$this]]></code>
</InvalidReturnType>
</file>
<file src="lib/Model/ShareWrapper.php">
<InvalidArgument>
<code><![CDATA[Cache::cacheEntryFromData($this->getFileCache()->toCache(), OC::$server->getMimeTypeLoader())]]></code>
<code><![CDATA[$this->setAttributes($attributes);]]></code>
</InvalidArgument>
<InvalidNullableReturnType>
<code><![CDATA[Circle]]></code>
<code><![CDATA[FileCacheWrapper]]></code>
<code><![CDATA[Member]]></code>
<code><![CDATA[Member]]></code>
<code><![CDATA[ShareToken]]></code>
</InvalidNullableReturnType>
<NullableReturnStatement>
<code><![CDATA[$this->circle]]></code>
<code><![CDATA[$this->fileCache]]></code>
<code><![CDATA[$this->initiator]]></code>
<code><![CDATA[$this->owner]]></code>
<code><![CDATA[$this->shareToken]]></code>
</NullableReturnStatement>
</file>
<file src="lib/Model/SharesToken.php">
<InvalidScalarArgument>
<code><![CDATA[$this->get('share_id', $data, '')]]></code>
</InvalidScalarArgument>
</file>
<file src="lib/Model/SharingFrame.php">
<NullArgument>
<code><![CDATA[null]]></code>
</NullArgument>
<NullableReturnStatement>
<code><![CDATA[null]]></code>
<code><![CDATA[null]]></code>
</NullableReturnStatement>
</file>
<file src="lib/MountManager/CircleMount.php">
<UndefinedClass>
<code><![CDATA[MoveableMount]]></code>
</UndefinedClass>
</file>
<file src="lib/MountManager/CircleMountProvider.php">
<InvalidConstantAssignmentValue>
<code><![CDATA[EXTERNAL_STORAGE = ExternalStorage::class]]></code>
</InvalidConstantAssignmentValue>
<MissingDependency>
<code><![CDATA[CircleMount]]></code>
</MissingDependency>
<UndefinedClass>
<code><![CDATA[ExternalStorage]]></code>
</UndefinedClass>
</file>
<file src="lib/Service/ContactService.php">
<UndefinedClass>
<code><![CDATA[ContactsManager]]></code>
</UndefinedClass>
</file>
<file src="lib/Service/FederatedShareService.php">
<InvalidMethodCall>
<code><![CDATA[gObj]]></code>
</InvalidMethodCall>
</file>
<file src="lib/Service/FederatedUserService.php">
<InvalidReturnType occurrences="1">
<code>FederatedUser</code>
</InvalidReturnType>
</file>
<file src="lib/Service/GlobalScaleService.php">
<UndefinedClass>
<code><![CDATA[Signer]]></code>
</UndefinedClass>
<UndefinedDocblockClass>
<code><![CDATA[Signer]]></code>
</UndefinedDocblockClass>
</file>
<file src="lib/Service/MembershipService.php">
<ConflictingReferenceConstraint>
<code><![CDATA[if (!in_array($member->getCircleId(), $knownIds)) {]]></code>
</ConflictingReferenceConstraint>
</file>
<file src="lib/Service/MigrationService.php">
<UndefinedClass>
<code><![CDATA[ContactsManager]]></code>
</UndefinedClass>
</file>
<file src="lib/Service/MiscService.php">
<InvalidReturnType>
<code><![CDATA[string]]></code>
</InvalidReturnType>
<TypeDoesNotContainType>
<code><![CDATA[is_array($contact)]]></code>
</TypeDoesNotContainType>
<UndefinedDocblockClass>
<code><![CDATA[$cManager]]></code>
<code><![CDATA[$cManager]]></code>
</UndefinedDocblockClass>
</file>
<file src="lib/Service/RemoteStreamService.php">
<RedundantCondition>
<code><![CDATA[is_null($object)]]></code>
</RedundantCondition>
</file>
<file src="lib/Service/SyncService.php">
<InvalidClass>
<code><![CDATA[federatedEventService]]></code>
<code><![CDATA[federatedEventService]]></code>
</InvalidClass>
</file>
<file src="lib/Service/TimezoneService.php">
<UndefinedClass>
<code><![CDATA[TimeFactory]]></code>
</UndefinedClass>
<UndefinedDocblockClass>
<code><![CDATA[$this->timeFactory]]></code>
<code><![CDATA[TimeFactory]]></code>
</UndefinedDocblockClass>
</file>
<file src="lib/ShareByCircleProvider.php">
<ImplementedParamTypeMismatch>
<code><![CDATA[$shareId]]></code>
</ImplementedParamTypeMismatch>
<InvalidNullableReturnType>
<code><![CDATA[IShare]]></code>
<code><![CDATA[IShare]]></code>
<code><![CDATA[IShare]]></code>
<code><![CDATA[IShare]]></code>
<code><![CDATA[IShare]]></code>
</InvalidNullableReturnType>
<LessSpecificImplementedReturnType>
<code><![CDATA[array]]></code>
</LessSpecificImplementedReturnType>
<NullableReturnStatement>
<code><![CDATA[$wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator)]]></code>
<code><![CDATA[$wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator)]]></code>
<code><![CDATA[$wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator)]]></code>
<code><![CDATA[$wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator)]]></code>
<code><![CDATA[$wrappedShare->getShare($this->rootFolder, $this->userManager, $this->urlGenerator)]]></code>
</NullableReturnStatement>
<ParamNameMismatch>
<code><![CDATA[$shareId]]></code>
</ParamNameMismatch>
</file>
<file src="lib/Tools/ActivityPub/NCSignature.php">
<RedundantCondition>
<code><![CDATA[$varr[0] !== null]]></code>
</RedundantCondition>
</file>
<file src="lib/Tools/Model/NCRequestResult.php">
<UndefinedClass>
<code><![CDATA[BadResponseException]]></code>
<code><![CDATA[BadResponseException]]></code>
<code><![CDATA[BadResponseException|null]]></code>
</UndefinedClass>
<UndefinedDocblockClass>
<code><![CDATA[BadResponseException]]></code>
<code><![CDATA[private $exception = null;]]></code>
</UndefinedDocblockClass>
</file>
<file src="lib/Tools/Model/SimpleDataStore.php">
<InvalidReturnStatement>
<code><![CDATA[$item]]></code>
</InvalidReturnStatement>
</file>
<file src="lib/Tools/Traits/TArrayTools.php">
<TooManyArguments>
<code><![CDATA[getArray]]></code>
</TooManyArguments>
</file>
<file src="lib/Tools/Traits/TNCLogger.php">
<RedundantPropertyInitializationCheck>
<code><![CDATA[isset($this->logger)]]></code>
</RedundantPropertyInitializationCheck>
<RedundantCondition>
<code><![CDATA[isset($this->logger)]]></code>
</RedundantCondition>
<UndefinedClass>
<code><![CDATA[HintException]]></code>
</UndefinedClass>
</file>
<file src="lib/Tools/Traits/TNCRequest.php">
<InvalidArgument>
<code><![CDATA[$e]]></code>
</InvalidArgument>
<UndefinedClass>
<code><![CDATA[ClientException]]></code>
</UndefinedClass>
</file>
<file src="lib/Tools/Traits/TNCSignatory.php">
<UndefinedMethod>
<code><![CDATA[getOpenSSLAlgo]]></code>
</UndefinedMethod>
</file>
<file src="lib/Tools/Traits/TStringTools.php">
<InvalidArrayOffset>
<code><![CDATA[$s[$e]]]></code>
</InvalidArrayOffset>
</file>
</files>