zephir-lang / php-zephir-parser

The Zephir Parser delivered as a C extension for the PHP language.
https://zephir-lang.com
MIT License
186 stars 36 forks source link

Cant concatenate strings #112

Closed rafaguedes closed 3 years ago

rafaguedes commented 3 years ago

I'm getting this error.

[ERROR] Unknown type: concat

var virtualHostFile = file_get_contents("/etc/apache2/sites-available/000-default.conf"); var newVirtualHostFile = virtualHostFile . "newtext";

When i do a var_dump in virtualHostFile im getting this as string.

What am i doing wrong?

rafaguedes commented 3 years ago

I solve that!

I must to set the variable as string in declaration, like this:

string virtualHostFile = file_get_contents("/etc/apache2/sites-available/000-default.conf"); string newVirtualHostFile = virtualHostFile . "newtext";