Skip to content

Commit e1e9fd4

Browse files
minor #25585 Add type string to docblock for Process::setInput() (icanhazstring)
This PR was submitted for the 3.4 branch but it was squashed and merged into the 3.3 branch instead (closes #25585). Discussion ---------- Add type string to docblock for Process::setInput() | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | none Add `string` as valid `$input` for `Process::setInput()`. Since `getInput()` will also return as string and the internal method `ProcessUtils::validateInput()` will accept a string, this should be a viable input type. Commits ------- e3de68f2 Add type string to docblock for Process::setInput()
2 parents 52aa5df + ac5ff00 commit e1e9fd4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Encoder/EncoderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface EncoderInterface
2727
* @param string $format Format name
2828
* @param array $context Options that normalizers/encoders have access to
2929
*
30-
* @return scalar
30+
* @return string|int|float|bool
3131
*
3232
* @throws UnexpectedValueException
3333
*/

Normalizer/DenormalizableInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ interface DenormalizableInterface
2727
* It is important to understand that the denormalize() call should denormalize
2828
* recursively all child objects of the implementor.
2929
*
30-
* @param DenormalizerInterface $denormalizer The denormalizer is given so that you
31-
* can use it to denormalize objects contained within this object
32-
* @param array|scalar $data The data from which to re-create the object
33-
* @param string|null $format The format is optionally given to be able to denormalize differently
34-
* based on different input formats
35-
* @param array $context Options for denormalizing
30+
* @param DenormalizerInterface $denormalizer The denormalizer is given so that you
31+
* can use it to denormalize objects contained within this object
32+
* @param array|string|int|float|bool $data The data from which to re-create the object
33+
* @param string|null $format The format is optionally given to be able to denormalize
34+
* differently based on different input formats
35+
* @param array $context Options for denormalizing
3636
*
3737
* @return object
3838
*/

Normalizer/NormalizableInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface NormalizableInterface
3333
* based on different output formats
3434
* @param array $context Options for normalizing this object
3535
*
36-
* @return array|scalar
36+
* @return array|string|int|float|bool
3737
*/
3838
public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array());
3939
}

Normalizer/NormalizerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface NormalizerInterface
2929
* @param string $format Format the normalization result will be encoded as
3030
* @param array $context Context options for the normalizer
3131
*
32-
* @return array|scalar
32+
* @return array|string|int|float|bool
3333
*
3434
* @throws InvalidArgumentException Occurs when the object given is not an attempted type for the normalizer
3535
* @throws CircularReferenceException Occurs when the normalizer detects a circular reference when no circular

0 commit comments

Comments
 (0)