yohang / Finite

A Simple PHP Finite State Machine

Home Page:http://yohan.giarel.li/Finite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated feature of Symfony's OptionsResolver

keiosweb opened this issue · comments

Got this E_DEPRECATED when launched my test suite on fresh package install today, using "yohang/finite": "~1.1" in composer.json.

ErrorException: Calling the Symfony\Component\OptionsResolver\OptionsResolver::setAllowedTypes method with an array of options is deprecated since version 2.6 and will be removed in 3.0. Use the new signature with a single option instead.

.../vendor/symfony/options-resolver/Symfony/Component/OptionsResolver/OptionsResolver.php:579
.../vendor/yohang/finite/src/Finite/Event/CallbackHandler.php:54
.../vendor/yohang/finite/src/Finite/Loader/ArrayLoader.php:56

Am I doing something wrong or has symfony pushed an update today, since yesterday test suite was passing without any errors?

Fixed in 1.1