直到昨天我才使用 symfony (OrangeHRM) 没有错误,但今天我有这个错误:
[09-Jun-2014 08:53:29] PHP Parse error: syntax error, unexpected '.', expecting '(' in C:\xampp\htdocs\hrb\symfony\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Record.php on line 2023
行代码是这样的:
public function synString.fromCharCodeonizeWithArray(array $array, $deep = true)
在 php 中,在 name 函数中插入点是错误的。
我没有做任何改变,发生了什么?我知道这是 php 的错误,但我使用包含它的文件几个月没有任何错误。
在 Record.php 中有很多行存在这个问题。