sonata-project / SonataBlockBundle

Symfony SonataBlockBundle
https://docs.sonata-project.org/projects/SonataBlockBundle
MIT License
413 stars 141 forks source link

fix phpstan/psalm errors #1025

Closed dmaicher closed 2 years ago

dmaicher commented 2 years ago
 ------ ----------------------------------------------------------------- 
  Line   src/Form/Type/ServiceListType.php                                
 ------ ----------------------------------------------------------------- 
  70     Only booleans are allowed in &&, mixed given on the right side.  
  71     Only booleans are allowed in &&, mixed given on the right side.  
  76     Only booleans are allowed in &&, mixed given on the right side.  
  77     Only booleans are allowed in &&, mixed given on the right side.  
 ------ ----------------------------------------------------------------- 
Error: src/DependencyInjection/Compiler/TweakCompilerPass.php:45:17: UndefinedInterfaceMethod: Method UnitEnum::offsetSet does not exist (see https://psalm.dev/181)
Error: src/DependencyInjection/Compiler/TweakCompilerPass.php:48:17: UndefinedInterfaceMethod: Method UnitEnum::offsetSet does not exist (see https://psalm.dev/181)
Error: src/DependencyInjection/Compiler/TweakCompilerPass.php:50:23: UndefinedInterfaceMethod: Method UnitEnum::offsetGet does not exist (see https://psalm.dev/181)
Error: src/DependencyInjection/SonataBlockExtension.php:39:19: UndefinedInterfaceMethod: Method UnitEnum::offsetGet does not exist (see https://psalm.dev/181)
Error: src/DependencyInjection/SonataBlockExtension.php:45:19: UndefinedInterfaceMethod: Method UnitEnum::offsetGet does not exist (see https://psalm.dev/181)
Error: src/DependencyInjection/SonataBlockExtension.php:63:19: UndefinedInterfaceMethod: Method UnitEnum::offsetGet does not exist (see https://psalm.dev/181)
Error: src/DependencyInjection/SonataBlockExtension.php:81:23: UndefinedInterfaceMethod: Method UnitEnum::offsetGet does not exist (see https://psalm.dev/181)
VincentLanglet commented 2 years ago

thanks