Skip to content

Undefined variable $matches #162

@hgiesenow

Description

@hgiesenow

In APP_ENV=dev everything works as expected, but as soon as I set the environment to prod, the container does not compile anymore. The error messages says

In AddingTypesToAdjustmentClearerPass.php line 39:
                                        
  [ErrorException]                      
  Warning: Undefined variable $matches  
                                        

Exception trace:
  at /var/www/vendor/brille24/sylius-customer-options-plugin/src/CompilerPass/AddingTypesToAdjustmentClearerPass.php:39
 Brille24\SyliusCustomerOptionsPlugin\CompilerPass\AddingTypesToAdjustmentClearerPass->addClearerToContainerParameter() at /var/www/vendor/brille24/sylius-customer-options-plugin/src/CompilerPass/AddingTypesToAdjustmentClearerPass.php:24
 Brille24\SyliusCustomerOptionsPlugin\CompilerPass\AddingTypesToAdjustmentClearerPass->process() at /var/www/vendor/symfony/dependency-injection/Compiler/Compiler.php:80

It seems like the assert() function is disabled by symfony in production mode.

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