Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 19, 2024
1 parent 1d0f60d commit 3fb0757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/stubs/CURLStringFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __set(string $name, $value): void
}

if (is_object($value) ? !method_exists($value, '__toString') : !is_scalar($value)) {
throw new \TypeError('Cannot assign '.gettype($value).' to property CURLStringFile::$data of type string');
throw new TypeError('Cannot assign '.gettype($value).' to property CURLStringFile::$data of type string');
}

$this->name = 'data://application/octet-stream;base64,'.base64_encode($value);
Expand Down

0 comments on commit 3fb0757

Please sign in to comment.