Rinos
Rinos

Reputation: 644

Symfony (OrangeHRM): Error for Dot in php name function

I used symfony (OrangeHRM) with no error till yesterday but today I have this error:

[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

The line code is this:

public function synString.fromCharCodeonizeWithArray(array $array, $deep = true)

In php is an error to insert Dot in name function.

I didn't make any change, what happened? I know that is an error on php, but I used the file that contain it for months without any error.

In Record.php there are many lines with this problem.

Upvotes: 1

Views: 239

Answers (1)

COil
COil

Reputation: 7606

Two functions in Record.php have the same signature:

public function fromArray(array $array, $deep = true)

or

public function synchronizeWithArray(array $array, $deep = true)

Indeed, it's look like a fail on a mass search/replace. So revert the modifications. But as it is a plugin, it should be set as an external and shouldn't be committed.

Upvotes: 1

Related Questions