solutionDrive / SyliusProductBundlesPlugin

Plugin for Sylius to configure bundles for products that can be sold together
MIT License
20 stars 4 forks source link

Fix `phpstan`-errors instead of adding exceptions for the rules #47

Open mattagohni opened 5 years ago

mattagohni commented 5 years ago

The following exception to the phpstan-rules should be reolved in the code.

  # Symfony null typehints
        - '/Cannot call method arrayNode\(\) on **Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface\|null/'**

Affected Code:

 ------ ----------------------------------------------------------------------- 
  Line   Fixture/ProductBundleFixture.php                                       
 ------ ----------------------------------------------------------------------- 
  25     Cannot call method arrayNode() on                                      
         Symfony\Component\Config\Definition\Builder\NodeParentInterface|null.  
 ------ ----------------------------------------------------------------------- 
 ------ -------------------------------------------- 
  Line   Form/Type/ProductBundleSlotType.php         
 ------ -------------------------------------------- 
  67     Cannot call method getData() on             
         Symfony\Component\Form\FormInterface|null.  
  67     Cannot call method getParent() on           
         Symfony\Component\Form\FormInterface|null.  
 ------ --------------------------------------------