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

PHP 7.1 - typehints, return types, strict types #26

Merged
merged 9 commits into from Dec 6, 2017
Merged

PHP 7.1 - typehints, return types, strict types #26

merged 9 commits into from Dec 6, 2017

Conversation

michalbundyra
Copy link
Member

The PR destination should be changes once branch release-3.0.0 is created.

Also we should update zend-expressive-router to ^3.0.0@dev once zendframework/zend-expressive-router#41 is merged.

Unfortunately one test is failing and I don't know how to fix it right now.
@weierophinney any ideas?

Note:

are both fine.

@weierophinney weierophinney changed the base branch from develop to release-3.0.0 December 6, 2017 21:51
@weierophinney
Copy link
Member

Unfortunately one test is failing and I don't know how to fix it right now.
@weierophinney any ideas?

Looking into it now. I think it may have to do with how the AuraRouter populstaes the RouteResult.

@weierophinney
Copy link
Member

Unfortunately one test is failing and I don't know how to fix it right now.
@weierophinney any ideas?

Looking into it now. I think it may have to do with how the AuraRouter populstaes the RouteResult.

RouteResult::isMethodFailure() returns false if [] == $this->allowedMethods... which is precisely what the test sets up. This either means:

  • RouteResult::isMethodFailure()'s logic is incorrect, or
  • AuraRouter::match() is incorrectly populating the RouteResult.

Looking at the logic in RouteResult, my inclination is that that logic is wrong. It should be looking for ['*'] === $this->allowedMethods.

@weierophinney
Copy link
Member

Interestingly, after pushing an update to zend-expressive-router to fix that particular issue, I get three different failures in this package. Working on those now.

@weierophinney weierophinney added this to the 3.0.0alpha1 milestone Dec 6, 2017
@weierophinney weierophinney merged commit a19ce82 into zendframework:release-3.0.0 Dec 6, 2017
weierophinney added a commit that referenced this pull request Dec 6, 2017
PHP 7.1 - typehints, return types, strict types

Conflicts:
	composer.json
	composer.lock
weierophinney added a commit that referenced this pull request Dec 6, 2017
@michalbundyra michalbundyra deleted the feature/php-7.1 branch December 6, 2017 22:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants