Solved. I thought that PHP 7 would be used because I had selected PHP 7 in WAMP's menu, but it doesn't come from there. In the past I had configure PHP 5.6 in Windows' environment variables. I changed the path to that of PHP 7.
-- You received this message because you are subscribed to the Google Groups "sonata-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sonata-users+unsubscr...@googlegroups.com. To post to this group, send email to sonata-users@googlegroups.com. Visit this group at https://groups.google.com/group/sonata-users. For more options, visit https://groups.google.com/d/optout.