Skip to content

Commit

Permalink
Fix argument order for file_put_contents
Browse files Browse the repository at this point in the history
Problem only affects tests.
  • Loading branch information
kohler committed Dec 2, 2024
1 parent 851baef commit f0fdae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/qrequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function body_filename($extension = null) {
if ($this->_body_type === self::BODY_INPUT) {
$ok = copy("php://input", $fn);
} else {
$ok = file_put_contents($this->_body, $fn) === strlen($this->_body);
$ok = file_put_contents($fn, $this->_body) === strlen($this->_body);
}
if ($ok) {
$this->_body_filename = $fn;
Expand Down

0 comments on commit f0fdae6

Please sign in to comment.