Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

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

@mattagohni

Description

@mattagohni

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.  
 ------ --------------------------------------------                                                                           

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions