[#82] handle php version

This commit is contained in:
z7zmey
2019-12-26 17:57:56 +02:00
parent 6afa2a089b
commit ec6be0d9bd
90 changed files with 673 additions and 616 deletions

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()