Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit a7ddac8

Browse files
committed
up
1 parent d3f672c commit a7ddac8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Helpers/PhpHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ public static function dumpVars(...$args): string
161161
*/
162162
public static function printVars(...$args): string
163163
{
164-
ob_start();
164+
$string = '';
165+
165166
foreach ($args as $arg) {
166-
print_r($arg);
167+
$string .= print_r($arg, 1) . PHP_EOL;
167168
}
168-
$string = ob_get_clean();
169169

170170
return preg_replace("/Array\n\s+\(/", 'Array (', $string);
171171
}

src/Web/ViewRendererTrait.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ public function renderPartial($view, array $data = [])
5757
/**
5858
* @param string $string
5959
* @param array $data
60+
* @param null|string $layout
6061
* @return string
6162
*/
62-
public function renderContent($string, array $data = [])
63+
public function renderContent($string, array $data = [], $layout = null)
6364
{
64-
return $this->getRenderer()->renderContent($string, $data);
65+
return $this->getRenderer()->renderContent($string, $data, $layout);
6566
}
6667

6768
}

0 commit comments

Comments
 (0)