Skip to content

Commit

Permalink
Alpha v4
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunate authored and rmunate committed Nov 10, 2023
1 parent 4647d14 commit 5dc3748
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Render.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function with(array $data)
public function toJS(string $alias = 'PHP2JS')
{
$this->dataJS = $this->data;
$this->alias = trim($alias);
$this->alias = $alias;
$this->php2js = true;

return $this;
Expand All @@ -62,10 +62,10 @@ public function toJS(string $alias = 'PHP2JS')
*
* @return static
*/
public function toStrictJS(array $vars = [], string $alias = 'PHP2JS'): static
public function toStrictJS(array $data = [], string $alias = 'PHP2JS'): static
{
$this->dataJS = $this->vars;
$this->alias = trim($alias);
$this->dataJS = $data;
$this->alias = $alias;
$this->php2js = true;

return $this;
Expand Down

0 comments on commit 5dc3748

Please sign in to comment.