aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/process/pipes/abstract_pipes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/process/pipes/abstract_pipes.rs')
-rw-r--r--crates/shirabe-external-packages/src/symfony/process/pipes/abstract_pipes.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/process/pipes/abstract_pipes.rs b/crates/shirabe-external-packages/src/symfony/process/pipes/abstract_pipes.rs
index 5b85813..bafd146 100644
--- a/crates/shirabe-external-packages/src/symfony/process/pipes/abstract_pipes.rs
+++ b/crates/shirabe-external-packages/src/symfony/process/pipes/abstract_pipes.rs
@@ -17,11 +17,9 @@ impl AbstractPipes {
pub fn new(input: PhpMixed) -> Self {
let mut input_buffer = String::new();
let stored_input;
- // TODO(plugin): `$input instanceof \Iterator` is not modeled. `is_resource` on a PhpMixed is
- // always false, so the resource branch never stores input here.
- if php::is_resource(&input) {
- stored_input = input;
- } else if let PhpMixed::String(s) = &input {
+ // TODO(plugin): `$input instanceof \Iterator` is not modeled. The PHP `is_resource($input)`
+ // branch never applies: a PhpMixed is never a resource, so input is never stored as-is here.
+ if let PhpMixed::String(s) = &input {
input_buffer = s.clone();
stored_input = PhpMixed::Null;
} else {