Skip to content

Comments

chore: support laminas service manager v4#132

Merged
gsteel merged 14 commits intolaminas:5.0.xfrom
mairo744:chore/laminas-sm-v4
Jul 8, 2025
Merged

chore: support laminas service manager v4#132
gsteel merged 14 commits intolaminas:5.0.xfrom
mairo744:chore/laminas-sm-v4

Conversation

@mairo744
Copy link

@mairo744 mairo744 commented Jul 6, 2025

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

Description

This pull request updates the package to support Laminas Service Manager v4. The changes involve updating dependency constraints in composer.json:

  • Updated laminas/laminas-servicemanager requirement to ^4.0.0 in require-dev

I have tested these changes in our codebase where we use laminas-hydrator extensively, and everything works fine with Service Manager v4. All tests pass and the functionality remains unchanged.

I can also help with any improvements or refactoring suggestions if needed. I'm happy to contribute further to ensure smooth compatibility with the latest Service Manager version.

This is a QA improvement that ensures compatibility with the latest version of Laminas Service Manager while maintaining backward compatibility. The change targets the next minor branch as it's a QA improvement that doesn't change code behavior.

Copy link
Member

@gsteel gsteel left a comment

Choose a reason for hiding this comment

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

Thanks @mairo744

Please can you rebase with a sign-off (See instructions in the DCO check failure).

This will have to be released in the next major (5.0.0), so we'll need to come up with a list of other improvements to be done in future patches

@gsteel gsteel added this to the 5.0.0 milestone Jul 7, 2025
@mairo744 mairo744 force-pushed the chore/laminas-sm-v4 branch from fc41489 to b6ac096 Compare July 7, 2025 14:57
@mairo744 mairo744 force-pushed the chore/laminas-sm-v4 branch 2 times, most recently from 1e15af4 to 1ffa02e Compare July 7, 2025 19:37
mmalac and others added 13 commits July 7, 2025 23:01
Signed-off-by: mmalac <mmalac@sygic.com>
mark as final

Co-authored-by: George Steel <george@netglue.uk>
Signed-off-by: mairo744 <mairo744@gmail.com>
Signed-off-by: mmalac <mmalac@sygic.com>
…orPluginManager was marked as final

Signed-off-by: mmalac <mmalac@sygic.com>
… in private constant

Signed-off-by: mmalac <mmalac@sygic.com>
…ger as required dependencies

Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
…andling

Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
…ation

Signed-off-by: mmalac <mmalac@sygic.com>
Signed-off-by: mmalac <mmalac@sygic.com>
@mairo744 mairo744 force-pushed the chore/laminas-sm-v4 branch from f4c5744 to 7ef01ff Compare July 7, 2025 21:01
… SerializableStrategy

Signed-off-by: mmalac <mmalac@sygic.com>
Copy link
Member

@gsteel gsteel left a comment

Choose a reason for hiding this comment

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

Thanks @mairo744 - Nice cleanup 👍

Comment on lines +21 to +28
<issueHandlers>
<InternalClass>
<errorLevel type="suppress">
<file name="test/HydratorPluginManagerFactoryTest.php" />
</errorLevel>
</InternalClass>
</issueHandlers>

Copy link
Member

Choose a reason for hiding this comment

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

FYI, you can use something like this on class level doc blocks to stop Psalm complaining:

/**
 * @psalm-internal \Laminas
 * @psalm-internal \LaminasTest
 */

Copy link
Author

Choose a reason for hiding this comment

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

Thanks @gsteel – really appreciate the quick review and helpful guidance! 🙌 I’ll start working through the migration guide: #133

Copy link
Member

Choose a reason for hiding this comment

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

There's some recent examples in the latest versions of laminas-filter and laminas-validator if that's helpful to you. Thanks for your work :)

@gsteel gsteel self-assigned this Jul 8, 2025
@gsteel gsteel added BC Break Enhancement QA Quality assurance tasks such as static analysis improvements Dependencies Updates and changes to dependencies labels Jul 8, 2025
@gsteel gsteel merged commit 946f10e into laminas:5.0.x Jul 8, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC Break Dependencies Updates and changes to dependencies Enhancement QA Quality assurance tasks such as static analysis improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type of Laminas\\Hydrator\\HydratorPluginManager::$sharedByDefault must be bool

3 participants