Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Add php 7.1 type hints #247

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

snapshotpl
Copy link
Contributor

No description provided.

@Ocramius
Copy link
Member

@snapshotpl this needs a rebase, sorry :-\

@Ocramius Ocramius added this to the 4.0.0 milestone Feb 17, 2018
@snapshotpl
Copy link
Contributor Author

@Ocramius done!

@@ -24,7 +25,7 @@
*
* {@inheritdoc}
*/
public function canCreate(\Psr\Container\ContainerInterface $container, $requestedName)
public function canCreate(ContainerInterface $container, string $requestedName): bool
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any plans to release this feature of coding standard?

Copy link
Member

Choose a reason for hiding this comment

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

Add your question to the related PR. Thanks!

@@ -136,7 +136,7 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
/**
* {@inheritDoc}
*/
public function canCreate(ContainerInterface $container, $requestedName)
public function canCreate(ContainerInterface $container, string $requestedName): bool
Copy link
Member

Choose a reason for hiding this comment

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

Same here…

private function resolveParameterWithoutConfigService(
ContainerInterface $container,
string $requestedName
): callable {
Copy link
Member

Choose a reason for hiding this comment

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

Here and so on…

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-servicemanager; a new issue has been opened at laminas/laminas-servicemanager#14.

@weierophinney
Copy link
Member

This repository has been moved to laminas/laminas-servicemanager. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:

  • Squash all commits in your branch (git rebase -i origin/{branch})
  • Make a note of all changed files (`git diff --name-only origin/{branch}...HEAD
  • Run the laminas/laminas-migration tool on the code.
  • Clone laminas/laminas-servicemanager to another directory.
  • Copy the files from the second bullet point to the clone of laminas/laminas-servicemanager.
  • In your clone of laminas/laminas-servicemanager, commit the files, push to your fork, and open the new PR.
    We will be providing tooling via laminas/laminas-migration soon to help automate the process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants