Skip to content

Exception when run plugin without options #44

Description

@bochkovprivate

I have a project like this:

...
test:
    php_parallel_lint:
    php_unit:
        config:
            - "test/phpunit.xml"

When I run the build it fails with messages like this:

RUNNING PLUGIN: PHP Parallel Lint (Stage: Test)
Exception: Catchable Fatal Error: Argument 3 passed to PHPCensor\Plugin\PhpParallelLint::__construct() must be of the type array, null given in /var/www/php-censor/src/PHPCensor/Plugin/PhpParallelLint.php line 46
PLUGIN: FAILED

This happens for all plugins I ran without params. That is not the desired behaviour because all params for these plugins are optional.

The same time in PHPCI this configurations works.

If I add params than it works like a charm in php-censor.

Looks like the reason is the difference between php-censor and PHPCI here:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions