From c6425bb5250f4d5f9df8a0a1c7dc4bdf300f97d0 Mon Sep 17 00:00:00 2001 From: Aerendir Date: Mon, 26 Aug 2024 16:20:17 +0200 Subject: [PATCH] Update baselines. --- .baseline-phan.php | 3 +- .baseline-phpstan.neon | 10 +- .baseline-psalm.xml | 308 ++++++++++++++++++++--------------------- 3 files changed, 161 insertions(+), 160 deletions(-) diff --git a/.baseline-phan.php b/.baseline-phan.php index 15d17498..bc4e773d 100644 --- a/.baseline-phan.php +++ b/.baseline-phan.php @@ -18,6 +18,7 @@ // PhanRedefinedExtendedClass : 6 occurrences // PhanUnreferencedClass : 6 occurrences // PhanUnreferencedClosure : 5 occurrences + // PhanDeprecatedImplicitNullableParam : 4 occurrences // PhanReadOnlyPrivateProperty : 4 occurrences // PhanUndeclaredMethod : 3 occurrences // PhanUnusedPublicNoOverrideMethodParameter : 3 occurrences @@ -52,7 +53,7 @@ 'src/Processor/RequestProcessor.php' => ['PhanRedefinedClassReference'], 'src/Processor/SubscriptionProcessor.php' => ['PhanAccessMethodInternal', 'PhanRedefinedClassReference'], 'src/SHQAwsSesMonitorBundle.php' => ['PhanRedefinedClassReference', 'PhanRedefinedExtendedClass', 'PhanUnreferencedClass'], - 'src/Service/Monitor.php' => ['PhanAccessClassConstantInternal', 'PhanAccessMethodInternal', 'PhanRedefinedClassReference', 'PhanUnreferencedPublicMethod', 'PhanUnusedVariableCaughtException'], + 'src/Service/Monitor.php' => ['PhanAccessClassConstantInternal', 'PhanAccessMethodInternal', 'PhanDeprecatedImplicitNullableParam', 'PhanRedefinedClassReference', 'PhanUnreferencedPublicMethod', 'PhanUnusedVariableCaughtException'], 'src/Util/Console.php' => ['PhanRedefinedClassReference', 'PhanTypeMismatchDeclaredReturn', 'PhanUndeclaredMethod'], 'src/Util/EmailStatusAnalyzer.php' => ['PhanAccessMethodInternal'], ], diff --git a/.baseline-phpstan.neon b/.baseline-phpstan.neon index ef2e53cc..5f07f6b1 100644 --- a/.baseline-phpstan.neon +++ b/.baseline-phpstan.neon @@ -10,6 +10,11 @@ parameters: count: 1 path: src/Command/SesSendTestEmailsCommand.php + - + message: "#^Property SerendipityHQ\\\\Bundle\\\\AwsSesMonitorBundle\\\\Command\\\\SesSendTestEmailsCommand\\:\\:\\$defaultDescription has no type specified\\.$#" + count: 1 + path: src/Command/SesSendTestEmailsCommand.php + - message: "#^Class DateTime is unsafe to use\\. Its methods can return FALSE instead of throwing an exception\\. Please add 'use Safe\\\\DateTime;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#" count: 1 @@ -267,11 +272,6 @@ parameters: - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertContains\\(\\) expects iterable, mixed given\\.$#" - count: 4 - path: tests/Plugin/MonitorFilterPluginTest.php - - - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotContains\\(\\) expects iterable, mixed given\\.$#" count: 1 path: tests/Plugin/MonitorFilterPluginTest.php diff --git a/.baseline-psalm.xml b/.baseline-psalm.xml index 663ea841..50d388bd 100644 --- a/.baseline-psalm.xml +++ b/.baseline-psalm.xml @@ -1,11 +1,11 @@ - + - (int) $wait * 10_000_000 + - $defaultName + - $topicName + monitor->getConfiguredIdentity($identity, $type)[self::TOPIC]]]> @@ -33,97 +33,97 @@ monitor->getConfiguredIdentity($parts['domain'], $type)[self::TOPIC]]]> - $verificationToken + monitor->getLiveTopic($topic)['arn']]]> - $allowedIdentities - $ioWriter - $sectionBody - $sectionTitle - $skippedIdentities + + + + + console->createSection($output)]]> console->createSection($output)]]> - (int) Command::SUCCESS - (int) Command::SUCCESS + + - $defaultName + - $sectionBody - $sectionTitle + + console->createSection($output)]]> console->createSection($output)]]> - (int) Command::SUCCESS + - $defaultName + - (int) Command::SUCCESS + - $identityGuesser + - sprintf + - addDefaultsIfNotSet - addDefaultsIfNotSet - addDefaultsIfNotSet - children + + + + - $bouncedOn - $emailStatus - $feedbackId - $id - $mailMessage - $subType - $type + + + + + + + - $complainedOn - $emailStatus - $feedbackId - $id - $mailMessage - $userAgent + + + + + + - $deliveredOn - $emailStatus - $id - $mailMessage - $processingTimeMillis - $smtpResponse + + + + + + @@ -133,27 +133,27 @@ deliveries]]> - Collection - Collection - Collection + + + - Collection - Collection - Collection + + + - $key - $key - $key + + + - add - add - add - exists - exists - exists + + + + + + @@ -163,31 +163,31 @@ deliveries]]> - Collection - Collection - Collection + + + - Collection - Collection - Collection + + + - add - add - add + + + - $messageId - $sendingAccountId - $sentFrom - $sentOn - $sourceArn + + + + + - $id + @@ -197,15 +197,15 @@ - $topicArn + - $event + - $blacklisted + getBcc()]]> @@ -226,11 +226,11 @@ - $attributes[self::SUBSCRIPTION_ARN] - $attributes[self::SUBSCRIPTION_ARN] - $attributes[self::SUBSCRIPTION_ARN] - $attributes[self::TOPIC_ARN] - $attributes[self::TOPIC_ARN] + + + + + data[self::SUBSCRIPTIONS]]]> @@ -249,42 +249,42 @@ - $topicConfig[self::TOPIC] + - getAccount + - $config[self::TRACK] - $config[self::TRACK] - $topicConfig[self::TOPIC] - $topicConfig[self::TRACK] + + + + - $config[self::TRACK] - $config[self::TRACK] - $topicConfig[self::TRACK] + + + get('Subscriptions')]]> get('Topics')]]> - $liveData - $sectionBody - $sectionTitle + + + - $ignoreEnv + - ConsoleSectionOutput|OutputInterface + @@ -297,18 +297,18 @@ - $resource + - loadConfiguration - testDefaultConfig - testTrackingDisabledDoesntRequireTopicBounces - testTrackingDisabledDoesntRequireTopicComplaints - testTrackingDisabledDoesntRequireTopicDeliveries - testTrackingDisabledForBothConfigFilterIsNotLoaded - testTrackingEnabledForBothConfigFilterIsLoaded - testTrackingEnabledForBouncesOnlyConfigFilterIsLoaded - testTrackingEnabledForComplaintsOnlyConfigFilterIsLoaded + + + + + + + + + container->getParameter('shq_aws_ses_monitor.endpoint')['host']]]> @@ -412,68 +412,68 @@ - $resource + - format + - $message - $message + + - MockObject|RouterInterface + createMockRouter()]]> createMockRouter()]]> - append + - MockObject|\Swift_Message + - $recipients - $recipients - $recipients - $recipients - $recipients - $recipients + + + + + + - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects - expects + + + + + + + + + + + + + + + + + + - MockObject|Response + getContent()]]> @@ -486,7 +486,7 @@ - $key + getContent()]]> @@ -497,24 +497,24 @@ createMock(IdentityGuesser::class)]]> - append - append - append - append - append - append - append - append - append - append - append + + + + + + + + + + + - method - method - method - method - method + + + + +