Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jkniest
Copy link
Contributor

@jkniest jkniest commented Jun 27, 2022

Heyho me again πŸ‘‹

Currently it is only possible to provide integer ports to docker (because of the typehint). But other valid ports can contain the ip address / subnet.

For example, those are all valid ports:

127:0.0.1:8000
8000
0.0.0.0:8000

So, I've removed the int typehint and replaced it with a docblock, which allows both string and int. When this package drops PHP 7.4 support in the future, the docblock can be replaced with a union type:

I've added another test to verify that everything is still working. Since integers still work fine, I believe this isn't a breaking change. If you need anything else for die PR, feel free to ask πŸ‘

Thank you!

@freekmurze freekmurze merged commit f399418 into spatie:main Jun 28, 2022
@freekmurze
Copy link
Member

Thank you!

@jkniest jkniest deleted the feature/string-ports branch June 28, 2022 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants