Skip to content

Commit

Permalink
Use boolean instead of int as second parameter to print_r() (solarium…
Browse files Browse the repository at this point in the history
…php#879)

Co-authored-by: Markus Kalkbrenner <[email protected]>
  • Loading branch information
thomascorthals and mkalkbrenner authored Nov 3, 2020
1 parent b647469 commit ca9e736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/Client/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Endpoint extends Configurable
*/
public function __toString()
{
$output = __CLASS__.'::__toString'."\n".'host: '.$this->getHost()."\n".'port: '.$this->getPort()."\n".'path: '.$this->getPath()."\n".'collection: '.$this->getCollection()."\n".'core: '.$this->getCore()."\n".'authentication: '.print_r($this->getAuthentication(), 1);
$output = __CLASS__.'::__toString'."\n".'host: '.$this->getHost()."\n".'port: '.$this->getPort()."\n".'path: '.$this->getPath()."\n".'collection: '.$this->getCollection()."\n".'core: '.$this->getCore()."\n".'authentication: '.print_r($this->getAuthentication(), true);

return $output;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Client/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Request extends Configurable implements RequestParamsInterface
*/
public function __toString()
{
$output = __CLASS__.'::__toString'."\n".'method: '.$this->getMethod()."\n".'header: '.print_r($this->getHeaders(), 1).'authentication: '.print_r($this->getAuthentication(), 1).'resource: '.$this->getUri()."\n".'resource urldecoded: '.urldecode($this->getUri())."\n".'raw data: '.$this->getRawData()."\n".'file upload: '.$this->getFileUpload()."\n";
$output = __CLASS__.'::__toString'."\n".'method: '.$this->getMethod()."\n".'header: '.print_r($this->getHeaders(), true).'authentication: '.print_r($this->getAuthentication(), true).'resource: '.$this->getUri()."\n".'resource urldecoded: '.urldecode($this->getUri())."\n".'raw data: '.$this->getRawData()."\n".'file upload: '.$this->getFileUpload()."\n";

return $output;
}
Expand Down

0 comments on commit ca9e736

Please sign in to comment.