Skip to content

PHP Fatal Error: Cannot redeclare Functional\* #3383

@theUniC

Description

@theUniC

Bug Report

Subject Details
Rector version 0.7.26
Installed as composer dependency

Minimal PHP Code Causing Issue

There seems to be some kind of problem in a project using lstrojny/functional-php. What I've seen so far is that seems to crash when a file imports a function that was already imported in another file. Related issues #3145. I've created an example repository with failing code.

https://github.com/theUniC/rectorphp-report-issue

The CLI I've used is

php vendor/bin/rector process --dry-run -vvvvv

Expected Behaviour

To finish the process without fatal errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions