10000 [Serializer] replaced "and" to "&&" · symfony/symfony@3b6f28a · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b6f28a

Browse files
committed
[Serializer] replaced "and" to "&&"
1 parent 1382811 commit 3b6f28a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Encoder/JsonDecode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function decode($data, $format, array $context = array())
9595
$decodedData = json_decode($data, $associative, $recursionDepth);
9696
}
9797

98-
if (JSON_ERROR_NONE !== $this->lastError = json_last_error() and false === $decodedData) {
98+
if (JSON_ERROR_NONE !== $this->lastError = json_last_error() && false === $decodedData) {
9999
throw new UnexpectedValueException(sprintf('Json decode error #%s: %s', json_last_error(), json_last_error_msg()));
100100
}
101101

src/Symfony/Component/Serializer/Encoder/JsonEncode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function encode($data, $format, array $context = array())
5555

5656
$encodedJson = json_encode($data, $context['json_encode_options']);
5757

58-
if (JSON_ERROR_NONE !== $this->lastError and false === $encodedJson) {
58+
if (JSON_ERROR_NONE !== $this->lastError && false === $encodedJson) {
5959
throw new UnexpectedValueException(sprintf('Json encode error #%s: %s', json_last_error(), json_last_error_msg()));
6060
}
6161

0 commit comments

Comments
 (0)
0