We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74584f4 commit 0815e52Copy full SHA for 0815e52
src/Exceptions/TwitterException.php
@@ -6,7 +6,7 @@
6
7
class TwitterException extends \Exception
8
{
9
- private const PRETTY_PRINT_FLAGS = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
+ public const PRETTY_PRINT_FLAGS = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
10
11
protected function __construct(string $message)
12
tests/TwitterExceptionTest.php
@@ -34,7 +34,7 @@
34
]))
35
);
36
37
- expect($exception)->getMessage()->toBe(json_encode($error, JSON_PRETTY_PRINT));
+ expect($exception)->getMessage()->toBe(json_encode($error, TwitterException::PRETTY_PRINT_FLAGS));
38
});
39
40
it('can handle 429s', function () {
0 commit comments