Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setTopicArn methods to SnsContext and SnsQsContext #1189

Merged
merged 1 commit into from
Aug 22, 2021

Conversation

gdsmith
Copy link
Contributor

@gdsmith gdsmith commented Jul 30, 2021

Enables us to prevent #1188

@gdsmith gdsmith force-pushed the allow-sns-topic-setting branch from 690f8ec to 425d5e0 Compare August 18, 2021 14:10
SnsContext::class,
SnsContext::class
));
throw new \InvalidArgumentException(sprintf('The $snsContext argument must be either %s or callable that returns %s once called.', SnsContext::class, SnsContext::class));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any particular reason for these formatting changes? IMO they reduce readability.

@gdsmith
Copy link
Contributor Author

gdsmith commented Aug 19, 2021 via email

@andrewmy
Copy link
Contributor

Pretty sure I saw them before the rebase as well.

@gdsmith
Copy link
Contributor Author

gdsmith commented Aug 20, 2021

Changes are from composer cs-fix. I can revert them if you'd prefer

@gdsmith
Copy link
Contributor Author

gdsmith commented Aug 20, 2021

Actually, seems like this would fail the build if I revert those changes:

./bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff -v --path-mode=intersection -- 'pkg/sns/SnsContext.php' 'pkg/snsqs/SnsQsContext.php'
PHP CS Fixer 2.18.6 Remote Void by Fabien Potencier and Dariusz Ruminski
Runtime: PHP 7.3.11
Loaded config default from ".php_cs.php".
Using cache file "/Volumes/Mukuru/taurus/third-party/enqueue-dev/var/.php_cs.cache".
SF
Legend: ?-unknown, I-invalid file syntax (file ignored), S-skipped (cached or empty file), .-no changes, F-fixed, E-error
   1) /Volumes/Mukuru/taurus/third-party/enqueue-dev/pkg/snsqs/SnsQsContext.php (single_line_throw)
      ---------- begin diff ----------
--- Original
+++ New
@@ @@
         } else {
-            throw new \InvalidArgumentException(sprintf(
-                'The $snsContext argument must be either %s or callable that returns %s once called.',
-                SnsContext::class,
-                SnsContext::class)
-            );
+            throw new \InvalidArgumentException(sprintf('The $snsContext argument must be either %s or callable that returns %s once called.', SnsContext::class, SnsContext::class));
@@ @@
         } else {
-            throw new \InvalidArgumentException(sprintf(
-                'The $sqsContext argument must be either %s or callable that returns %s once called.',
-                SqsContext::class,
-                SqsContext::class)
-            );
+            throw new \InvalidArgumentException(sprintf('The $sqsContext argument must be either %s or callable that returns %s once called.', SqsContext::class, SqsContext::class));
         }

@andrewmy
Copy link
Contributor

Wow ok :D

@gdsmith
Copy link
Contributor Author

gdsmith commented Aug 20, 2021

So is this good for deploy and release now 🤞

@makasim makasim merged commit 14f080a into php-enqueue:master Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants