[#82] handle php version
This commit is contained in:
@@ -20,7 +20,7 @@ func ExampleDumper() {
|
||||
}
|
||||
}`
|
||||
|
||||
php7parser := php7.NewParser([]byte(src))
|
||||
php7parser := php7.NewParser([]byte(src), "7.4")
|
||||
php7parser.WithFreeFloating()
|
||||
php7parser.Parse()
|
||||
nodes := php7parser.GetRootNode()
|
||||
|
||||
@@ -20,7 +20,7 @@ func ExampleGoDumper() {
|
||||
}
|
||||
}`
|
||||
|
||||
php7parser := php7.NewParser([]byte(src))
|
||||
php7parser := php7.NewParser([]byte(src), "7.4")
|
||||
php7parser.WithFreeFloating()
|
||||
php7parser.Parse()
|
||||
nodes := php7parser.GetRootNode()
|
||||
|
||||
@@ -22,7 +22,7 @@ func ExampleJsonDumper() {
|
||||
}
|
||||
}`
|
||||
|
||||
php7parser := php7.NewParser([]byte(src))
|
||||
php7parser := php7.NewParser([]byte(src), "7.4")
|
||||
php7parser.WithFreeFloating()
|
||||
php7parser.Parse()
|
||||
nodes := php7parser.GetRootNode()
|
||||
|
||||
@@ -26,7 +26,7 @@ func ExamplePrettyJsonDumper() {
|
||||
}
|
||||
`
|
||||
|
||||
php7parser := php7.NewParser([]byte(src))
|
||||
php7parser := php7.NewParser([]byte(src), "7.4")
|
||||
php7parser.WithFreeFloating()
|
||||
php7parser.Parse()
|
||||
nodes := php7parser.GetRootNode()
|
||||
|
||||
Reference in New Issue
Block a user