Skip to content

Commit

Permalink
Update plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed Aug 20, 2019
1 parent 95f5a00 commit a39d699
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 20 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "pre-compiler",
"license": "MIT",
"require": {
"pre/plugin": "^0.11.3"
"pre/plugin": "^0.12.0"
},
"require-dev": {
"phpunit/phpunit": "^5.0|^6.0"
Expand Down
128 changes: 118 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions tests/fixtures/compile/can-compile.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ function Error($props)
"render" => function ($error) {
return render("span", [
"className" => "error",
"children" => $error
"children" => $error,
]);
},
"children" => [
render("span", [
"className" => "icon"
"className" => "icon",
]),
render("h4", [
"children" => "Error"
"children" => "Error",
]),
"You forgot the",
$props->name,
"field"
]
"field",
],
]);
}

Expand All @@ -29,15 +29,15 @@ function ErrorRenderer($props)
return render("Error", [
"children" => function ($error) {
return render("span", [
"children" => $error
"children" => $error,
]);
}
},
]);
}

function InputRenderer($props)
{
return render("input", [
"type" => $props->type
"type" => $props->type,
]);
}
2 changes: 1 addition & 1 deletion tests/fixtures/compile/supports-nested-component-names.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
function MyComponent()
{
return render("div", [
"children" => "hello world"
"children" => "hello world",
]);
}
}
Expand Down

0 comments on commit a39d699

Please sign in to comment.