Skip to content

Commit a39d699

Browse files
committed
Update plugin version
1 parent 95f5a00 commit a39d699

File tree

4 files changed

+128
-20
lines changed

4 files changed

+128
-20
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "pre-compiler",
44
"license": "MIT",
55
"require": {
6-
"pre/plugin": "^0.11.3"
6+
"pre/plugin": "^0.12.0"
77
},
88
"require-dev": {
99
"phpunit/phpunit": "^5.0|^6.0"

composer.lock

Lines changed: 118 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/compile/can-compile.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ function Error($props)
77
"render" => function ($error) {
88
return render("span", [
99
"className" => "error",
10-
"children" => $error
10+
"children" => $error,
1111
]);
1212
},
1313
"children" => [
1414
render("span", [
15-
"className" => "icon"
15+
"className" => "icon",
1616
]),
1717
render("h4", [
18-
"children" => "Error"
18+
"children" => "Error",
1919
]),
2020
"You forgot the",
2121
$props->name,
22-
"field"
23-
]
22+
"field",
23+
],
2424
]);
2525
}
2626

@@ -29,15 +29,15 @@ function ErrorRenderer($props)
2929
return render("Error", [
3030
"children" => function ($error) {
3131
return render("span", [
32-
"children" => $error
32+
"children" => $error,
3333
]);
34-
}
34+
},
3535
]);
3636
}
3737

3838
function InputRenderer($props)
3939
{
4040
return render("input", [
41-
"type" => $props->type
41+
"type" => $props->type,
4242
]);
4343
}

tests/fixtures/compile/supports-nested-component-names.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function MyComponent()
55
{
66
return render("div", [
7-
"children" => "hello world"
7+
"children" => "hello world",
88
]);
99
}
1010
}

0 commit comments

Comments
 (0)