Skip to content

Replacing laminas/laminas-zendframework-bridge without providing its functionality breaks packages #2028

@mussbach

Description

@mussbach

Describe the Bug

In f2516b0 (#1946) was introduced that this package replaces laminas/laminas-zendframework-bridge. I do not really understand why this package should be replaced by phpword, which is especially weird as newly required laminas/laminas-escaper itself requires laminas/laminas-zendframework-bridge

In my opinion #1946 breaks setups where other libraries need laminas/laminas-zendframework-bridge. I am a bit hesitating, as no one else seems to have this problem. Perhaps anybody could help me to understand, what happens here?

Steps to Reproduce

Install phpword 0.18 in a setup with a package requiring the bridge. Then call anything.

Expected Behavior

Nothing should break

Current Behavior

A fatal error occurs Attempted to load class "ClassGenerator" from namespace "Zend\Code\Generator". Did you forget a "use" statement for e.g. "Laminas\Code\Generator\ClassGenerator"

Context

Please fill in your environment information:

  • PHP Version: 7.3
  • PHPWord Version: 0.18

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions