Skip to content

Commit db5d570

Browse files
Leverage PHP8's get_debug_type()
1 parent e295833 commit db5d570

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Pipes/AbstractPipes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function write(): ?array
103103
} elseif (!isset($this->inputBuffer[0])) {
104104
if (!\is_string($input)) {
105105
if (!is_scalar($input)) {
106-
throw new InvalidArgumentException(sprintf('%s yielded a value of type "%s", but only scalars and stream resources are supported.', \get_class($this->input), \gettype($input)));
106+
throw new InvalidArgumentException(sprintf('%s yielded a value of type "%s", but only scalars and stream resources are supported.', get_debug_type($this->input), get_debug_type($input)));
107107
}
108108
$input = (string) $input;
109109
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2.5"
19+
"php": "^7.2.5",
20+
"symfony/polyfill-php80": "^1.15"
2021
},
2122
"autoload": {
2223
"psr-4": { "Symfony\\Component\\Process\\": "" },

0 commit comments

Comments
 (0)