.baseline-psalm.xml
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.24.0@06dd975cb55d36af80f242561738f16c5f58264f">
<file src="src/Controller/WebhookController.php">
<PossiblyInvalidArgument occurrences="1">
<code>$request->getContent()</code>
</PossiblyInvalidArgument>
</file>
<file src="src/DependencyInjection/Configuration.php">
<PossiblyUndefinedMethod occurrences="1">
<code>children</code>
</PossiblyUndefinedMethod>
</file>
<file src="src/DependencyInjection/SHQStripeExtension.php">
<ParamNameMismatch occurrences="1">
<code>$containerBuilder</code>
</ParamNameMismatch>
<UndefinedClass occurrences="1">
<code>XmlFileLoader</code>
</UndefinedClass>
</file>
<file src="src/Event/AbstractStripeChargeEvent.php">
<MissingReturnType occurrences="1">
<code>validate</code>
</MissingReturnType>
<TypeDoesNotContainNull occurrences="1">
<code>null === $charge->getAmount()</code>
</TypeDoesNotContainNull>
</file>
<file src="src/Manager/StripeManager.php">
<DocblockTypeContradiction occurrences="1">
<code>false === $stripeCustomer</code>
</DocblockTypeContradiction>
<InvalidStringClass occurrences="4">
<code>$endpoint::$action($arguments[self::ID], $options)</code>
<code>$endpoint::$action($arguments[self::ID], $params, $options)</code>
<code>$endpoint::$action($options)</code>
<code>$endpoint::$action($params, $options)</code>
</InvalidStringClass>
<PossiblyInvalidArgument occurrences="3">
<code>$stripeCharge</code>
<code>$stripeCustomer</code>
<code>$stripeCustomer</code>
</PossiblyInvalidArgument>
<PossiblyNullArgument occurrences="1">
<code>$stripeCustomer</code>
</PossiblyNullArgument>
<PossiblyNullArrayAccess occurrences="3">
<code>$e->getJsonBody()[self::ERROR]</code>
<code>$e->getJsonBody()[self::ERROR]</code>
<code>$e->getJsonBody()[self::ERROR]</code>
</PossiblyNullArrayAccess>
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$logger instanceof Logger ? $logger->withName('SHQStripeBundle') : $logger</code>
</PossiblyNullPropertyAssignmentValue>
<PossiblyUndefinedMethod occurrences="6">
<code>getHttpHeaders</code>
<code>getHttpStatus</code>
<code>getHttpStatus</code>
<code>getJsonBody</code>
<code>getJsonBody</code>
<code>getRequestId</code>
</PossiblyUndefinedMethod>
<PossiblyUndefinedVariable occurrences="1">
<code>$return</code>
</PossiblyUndefinedVariable>
<RedundantCondition occurrences="1">
<code>false === isset($params['statement_descriptor']) && false === \is_null($this->statementDescriptor)</code>
</RedundantCondition>
<TypeDoesNotContainNull occurrences="2">
<code>\is_null($this->statementDescriptor)</code>
<code>null === $localCustomer->getId()</code>
</TypeDoesNotContainNull>
<TypeDoesNotContainType occurrences="1">
<code>false === $stripeCustomer</code>
</TypeDoesNotContainType>
</file>
<file src="src/Model/StripeLocalCard.php">
<PropertyNotSetInConstructor occurrences="10">
<code>$addressLine1Check</code>
<code>$addressZipCheck</code>
<code>$brand</code>
<code>$cvcCheck</code>
<code>$dynamicLast4</code>
<code>$fingerprint</code>
<code>$funding</code>
<code>$id</code>
<code>$last4</code>
<code>$tokenizationMethod</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Model/StripeLocalCharge.php">
<LessSpecificReturnStatement occurrences="2">
<code>$this->amount</code>
<code>$this->amountRefunded</code>
</LessSpecificReturnStatement>
<MismatchingDocblockReturnType occurrences="1">
<code>bool|string</code>
</MismatchingDocblockReturnType>
<MoreSpecificReturnType occurrences="2">
<code>Money</code>
<code>Money</code>
</MoreSpecificReturnType>
<PossiblyNullReference occurrences="4">
<code>getEmail</code>
<code>getId</code>
<code>getId</code>
<code>getId</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="5">
<code>$amount</code>
<code>$created</code>
<code>$id</code>
<code>$receiptNumber</code>
<code>$status</code>
</PropertyNotSetInConstructor>
<RedundantCondition occurrences="2">
<code>null !== $this->getCustomer()->getId()</code>
<code>null !== $this->getMetadata()</code>
</RedundantCondition>
<TypeDoesNotContainNull occurrences="1">
<code>null === $this->amount</code>
</TypeDoesNotContainNull>
</file>
<file src="src/Model/StripeLocalCustomer.php">
<PossiblyNullReference occurrences="1">
<code>getEmail</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="4">
<code>$created</code>
<code>$defaultSource</code>
<code>$delinquent</code>
<code>$id</code>
</PropertyNotSetInConstructor>
<RedundantCondition occurrences="1">
<code>null !== $this->getBalance()</code>
</RedundantCondition>
</file>
<file src="src/Model/StripeLocalWebhookEvent.php">
<MissingConstructor occurrences="5">
<code>$created</code>
<code>$id</code>
<code>$pendingWebhooks</code>
<code>$request</code>
<code>$type</code>
</MissingConstructor>
</file>
<file src="src/Repository/ByStripeIdInterface.php">
<MissingParamType occurrences="1">
<code>$id</code>
</MissingParamType>
</file>
<file src="src/Repository/StripeLocalCardRepository.php">
<LessSpecificImplementedReturnType occurrences="1">
<code>object|StripeLocalCard|null</code>
</LessSpecificImplementedReturnType>
<MismatchingDocblockReturnType occurrences="1">
<code>object|StripeLocalCard|null</code>
</MismatchingDocblockReturnType>
</file>
<file src="src/Repository/StripeLocalChargeRepository.php">
<LessSpecificImplementedReturnType occurrences="1">
<code>object|StripeLocalCharge|null</code>
</LessSpecificImplementedReturnType>
<MismatchingDocblockReturnType occurrences="1">
<code>object|StripeLocalCharge|null</code>
</MismatchingDocblockReturnType>
</file>
<file src="src/Repository/StripeLocalCustomerRepository.php">
<LessSpecificImplementedReturnType occurrences="1">
<code>object|StripeLocalCustomer|null</code>
</LessSpecificImplementedReturnType>
<MismatchingDocblockReturnType occurrences="1">
<code>object|StripeLocalCustomer|null</code>
</MismatchingDocblockReturnType>
</file>
<file src="src/Repository/StripeLocalWebhookEventRepository.php">
<LessSpecificImplementedReturnType occurrences="1">
<code>object|StripeLocalWebhookEvent|null</code>
</LessSpecificImplementedReturnType>
<MismatchingDocblockReturnType occurrences="1">
<code>object|StripeLocalWebhookEvent|null</code>
</MismatchingDocblockReturnType>
</file>
<file src="src/Subscriber/StripeChargeSubscriber.php">
<PossiblyNullArgument occurrences="1">
<code>$this->getStripeManager()->getError()</code>
</PossiblyNullArgument>
</file>
<file src="src/Subscriber/StripeCustomerSubscriber.php">
<PossiblyNullArgument occurrences="2">
<code>$this->getStripeManager()->getError()</code>
<code>$this->getStripeManager()->getError()</code>
</PossiblyNullArgument>
</file>
<file src="src/Syncer/AbstractSyncer.php">
<UndefinedClass occurrences="1">
<code>?BaseObject</code>
</UndefinedClass>
</file>
<file src="src/Syncer/CardSyncer.php">
<PossiblyNullReference occurrences="1">
<code>toArray</code>
</PossiblyNullReference>
</file>
<file src="src/Syncer/ChargeSyncer.php">
<PossiblyNullPropertyFetch occurrences="1">
<code>$stripeResource->source->id</code>
</PossiblyNullPropertyFetch>
<PossiblyNullReference occurrences="4">
<code>getDefaultSource</code>
<code>setError</code>
<code>toArray</code>
<code>toArray</code>
</PossiblyNullReference>
<RedundantConditionGivenDocblockType occurrences="1">
<code>$stripeResource->metadata instanceof StripeObject</code>
</RedundantConditionGivenDocblockType>
<UndefinedMagicPropertyFetch occurrences="1">
<code>$stripeResource->fraudDetails</code>
</UndefinedMagicPropertyFetch>
</file>
<file src="src/Syncer/CustomerSyncer.php">
<DeprecatedClass occurrences="1">
<code>Customer::retrieveSource($stripeResource->id, $stripeResource->default_source)</code>
</DeprecatedClass>
<DocblockTypeContradiction occurrences="1">
<code>null === $stripeResource->sources</code>
</DocblockTypeContradiction>
<ImplicitToStringCast occurrences="2">
<code>$localResource->getEmail()</code>
<code>$stripeResource->default_source</code>
</ImplicitToStringCast>
<InvalidArgument occurrences="1">
<code>$stripeResource->sources</code>
</InvalidArgument>
<PossiblyNullArgument occurrences="1">
<code>$stripeResource->default_source</code>
</PossiblyNullArgument>
<RedundantCondition occurrences="1">
<code>null !== $localResource->getBalance()</code>
</RedundantCondition>
<UndefinedMagicPropertyAssignment occurrences="1">
<code>$stripeResource->source</code>
</UndefinedMagicPropertyAssignment>
</file>
<file src="src/Syncer/WebhookEventSyncer.php">
<RedundantConditionGivenDocblockType occurrences="2">
<code>$localResource instanceof StripeLocalWebhookEvent</code>
<code>$stripeResource instanceof Event</code>
</RedundantConditionGivenDocblockType>
<UndefinedMagicPropertyFetch occurrences="1">
<code>$stripeResource->pendingWebhooks</code>
</UndefinedMagicPropertyFetch>
</file>
<file src="src/Util/EventGuesser.php">
<PossiblyFalseArgument occurrences="1">
<code>$dotPosition</code>
</PossiblyFalseArgument>
</file>
<file src="tests/DependencyInjection/AbstractStripeBundleExtensionTest.php">
<PossiblyInvalidArrayAccess occurrences="1">
<code>$this->container->getParameter('stripe_bundle.endpoint')['route_name']</code>
</PossiblyInvalidArrayAccess>
<PossiblyNullArrayAccess occurrences="1">
<code>$this->container->getParameter('stripe_bundle.endpoint')['route_name']</code>
</PossiblyNullArrayAccess>
<PossiblyNullReference occurrences="1">
<code>$this->container->getParameter('stripe_bundle.endpoint')</code>
</PossiblyNullReference>
<UndefinedInterfaceMethod occurrences="1">
<code>$this->container->getParameter('stripe_bundle.endpoint')</code>
</UndefinedInterfaceMethod>
</file>
<file src="tests/DependencyInjection/YamlStripeBundleExtensionTest.php">
<ReservedWord occurrences="1">
<code>$loader->load($resource . '.yaml')</code>
</ReservedWord>
</file>
</files>