Hamecrest fails in PHP 5.4

41 views
Skip to first unread message

Amjad Mohamed

unread,
Jan 20, 2012, 6:27:26 AM1/20/12
to hamcre...@googlegroups.com
Hamcrest fails with the following error. Apparently a token called 'callable' has been introduced which conflicts with Hamcrest's callable function.

PHP Parse error:  syntax error, unexpected 'callable' (T_CALLABLE), expecting identifier (T_STRING) or '(' in /usr/share/php/Hamcrest/hamcrest.php on line 390

David Harkness

unread,
Jan 20, 2012, 2:38:03 PM1/20/12
to hamcre...@googlegroups.com
On Fri, Jan 20, 2012 at 3:27 AM, Amjad Mohamed <and...@gmail.com> wrote:
Hamcrest fails with the following error. Apparently a token called 'callable' has been introduced which conflicts with Hamcrest's callable function.

PHP Parse error:  syntax error, unexpected 'callable' (T_CALLABLE), expecting identifier (T_STRING) or '(' in /usr/share/php/Hamcrest/hamcrest.php on line 390

I've fixed it in SVN, but it may take a few days before I can do a release.

Thanks for the report.

David
 

David Harkness

unread,
Jan 20, 2012, 4:23:30 PM1/20/12
to hamcre...@googlegroups.com
I've released Hamcrest PHP 1.0.0, long overdue. :)

    pear upgrade hamcrest/Hamcrest

Enjoy!
David

Reply all
Reply to author
Forward
0 new messages