Fix type-safety for ExtensionPluginManager#88
Fix type-safety for ExtensionPluginManager#88RobLoach wants to merge 1 commit intolaminas:2.23.xfrom
ExtensionPluginManager#88Conversation
This fixes a few type definitions that were missing when defining instances within `ExtensionPluginManager`, resulting in a complete white-screen when `error_reporting(E_ALL)` is enabled. For instance, [`PluginManagerInterface::validate`](https://github.com/laminas/laminas-servicemanager/blob/4.3.x/src/PluginManagerInterface.php#L27) expects to return `void`. Signed-off-by: Rob Loach <robloach@gmail.com>
|
The |
|
Adding types to properties and return types would be a BC break. This package is not compatible with service manager v4. It is an optional dependency so no composer constraints. Conflict with v4 should be declared that can be resolved only in the next major. |
|
Thanks for the explanation, Xerkus. Are there plans to make it compatible with v4? Anything I can do to help make it happen? |
|
A new major version is needed but it can't really be done in multiple small steps. Before it can be tagged a major QA overhaul to modernize code to the current PHP, improve types and psalm coverage, resolve any other breaking issues and so on. If you are willing to tackle those tasks we can start work on a new major release. |
|
@RobLoach And an update is planned, but first all the foundational components need to be updated. |
This fixes a few type definitions that were missing when defining instances within
ExtensionPluginManager, resulting in a complete white-screen whenerror_reporting(E_ALL)is enabled.For instance,
PluginManagerInterface::validateexpects to returnvoid.This change fixes the following...
Description
Are you fixing a bug or providing a failing unit test to demonstrate a bug? Yes, this fixes type safety issues in the inherited class.
error_reporting(E_ALL), and inherit fromlaminas-service4.3Are you adding documentation? No.
Are you providing a QA improvement (additional tests, CS fixes, etc.) that
does not change behavior? No, there is no behavior change.
Are you fixing a BC Break? Unsure.
error_reporting(E_ALL)Are you adding something the library currently does not support? No.
Are you refactoring code? No.