brexis / laravel-workflow

Use the Symfony Workflow component in Laravel
MIT License
281 stars 104 forks source link

Deprecations (Workflow >= 4.1) #45

Closed Arcesilas closed 5 years ago

Arcesilas commented 5 years ago

Hi again,

With Workflow 4.1+, we get an 2 Deprecated Errors:

PHP Deprecated:  "Symfony/Component/Workflow/SupportStrategy/ClassInstanceSupportStrategy" is deprecated since Symfony 4.1. Use "Symfony/Component/Workflow/SupportStrategy/InstanceOfSupportStrategy" instead. in /home/olivier/dev/support/laravel/vendor/symfony/workflow/SupportStrategy/ClassInstanceSupportStrategy.php on line 14
PHP Deprecated:  The "Symfony/Component/Workflow/Registry::add()" method is deprecated since Symfony 4.1. Use addWorkflow() instead. in /home/olivier/dev/support/laravel/vendor/symfony/workflow/Registry.php on line 34

I may provide a PR. A new version may be required to handle the dependency version.

brexis commented 5 years ago

Fixed on the last release 1.3.0.