Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method Sylius\Bundle\ProductBundle\DependencyInjection\SyliusProductExtension::bar() cannot be called statically in /in/rJ7WD:6
Stack trace:
#0 /in/rJ7WD(6): call_user_func(Array)
#1 /in/rJ7WD(21): Sylius\Bundle\ResourceBundle\DependencyInjection\SyliusResourceExtension->test()
#2 {main}
thrown in /in/rJ7WD on line 6
Process exited with code 255.
Deprecated: call_user_func() expects parameter 1 to be a valid callback, non-static method Sylius\Bundle\ProductBundle\DependencyInjection\SyliusProductExtension::bar() should not be called statically in /in/rJ7WD on line 6
foo
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method Sylius\Bundle\ProductBundle\DependencyInjection\SyliusProductExtension::bar() should not be called statically, assuming $this from compatible context Sylius\Bundle\ProductBundle\DependencyInjection\SyliusProductExtension in /in/rJ7WD on line 6
foo