8000 Merge branch '3.4' into 4.3 · symfony/symfony@983b5d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 983b5d1

Browse files
Merge branch '3.4' into 4.3
* 3.4: [Console] Constant STDOUT might be undefined. Allow returning null from NormalizerInterface::normalize
2 parents 3ae3094 + 32bde39 commit 983b5d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Console/Terminal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private static function initDimensions()
9898
*/
9999
private static function hasVt100Support(): bool
100100
{
101-
return \function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(STDOUT);
101+
return \function_exists('sapi_windows_vt100_support') && sapi_windows_vt100_support(fopen('php://stdout', 'w'));
102102
}
103103

104104
/**

src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ interface NormalizerInterface
3030
* @param string $format Format the normalization result will be encoded as
3131
* @param array $context Context options for the normalizer
3232
*
33-
* @return array|string|int|float|bool
33+
* @return array|string|int|float|bool|null
3434
*
35-
* @throws InvalidArgumentException Occurs when the object given is not an attempted type for the normalizer
35+
* @throws InvalidArgumentException Occurs when the object given is not a supported type for the normalizer
3636
* @throws CircularReferenceException Occurs when the normalizer detects a circular reference when no circular
3737
* reference handler can fix it
3838
* @throws LogicException Occurs when the normalizer is not called in an expected context

0 commit comments

Comments
 (0)
0