Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve type inference for plugin managers, Drop Interop\Container, Drop PHP 7.3 #35

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Jul 12, 2022

Q A
Documentation yes
Bugfix no
BC Break no
New Feature yes
RFC no
QA yes

Description

  • Drop PHP 7.3
  • Removes Interop\Container via ServiceManger 3.14 minimum
  • Makes ExceptionInterface extend from Throwable
  • Re-enables translation-related tests that depend on ServiceManager ^3
  • Adds templated types to the RoutePluginManager
  • Deprecates ServiceManager v2 factory methods
  • Other minor improvements

@@ -4,7 +4,7 @@

namespace Laminas\Router;

use Zend\Router\Http\TreeRouteStack;
use Laminas\ServiceManager\ConfigInterface;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a find! 😱

interface ExceptionInterface
use Throwable;

interface ExceptionInterface extends Throwable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly a BC break, but 🤷‍♀️

*/
class RoutePluginManager extends AbstractPluginManager
{
/**
* Only RouteInterface instances are valid
*
* @var string
* @var class-string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not important, but consider that interface-string also exists (AFAIK)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh! Didn't know that.

container-interop/container-interop to psr/container automation moved this from In progress to Reviewer approved Jul 12, 2022
@Ocramius Ocramius self-assigned this Jul 12, 2022
@Ocramius Ocramius merged commit 39f9bdf into laminas:3.6.x Jul 12, 2022
container-interop/container-interop to psr/container automation moved this from Reviewer approved to Done Jul 12, 2022
@gsteel gsteel deleted the feature/improve-type-inference-for-plugin-managers branch July 12, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants