Adds type hinting for scalar types in ICrypto->decrypt#7825
Merged
Conversation
rullzer
approved these changes
Jan 12, 2018
Member
|
YES!!! This is one of the major benefits of >=7.0! Doing this will make our code more robust. The phpdoc is already telling you since forever what to pass. Less strict declarations to allow undefined behavior are a bad idea :) So yes please :) 👍 🚀 |
ChristophWurst
approved these changes
Jan 12, 2018
cf8c2ad to
d5dc1bd
Compare
Member
Author
|
This also then can be used by the strict type hinting in #7392 |
blizzz
approved these changes
Jan 12, 2018
Signed-off-by: Morris Jobke <[email protected]>
d5dc1bd to
ca28df6
Compare
Codecov Report
@@ Coverage Diff @@
## master #7825 +/- ##
============================================
- Coverage 51.23% 34.73% -16.5%
+ Complexity 24975 24956 -19
============================================
Files 1607 1607
Lines 95008 95046 +38
Branches 1376 1376
============================================
- Hits 48674 33018 -15656
- Misses 46334 62028 +15694
|
Member
Author
|
Rebased to get the fix for the failing unit tests in this PR: #7824 |
Signed-off-by: Roeland Jago Douma <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #7825 +/- ##
============================================
- Coverage 51.23% 51.21% -0.03%
+ Complexity 24975 24956 -19
============================================
Files 1607 1607
Lines 95008 95046 +38
Branches 1376 1376
============================================
Hits 48674 48674
- Misses 46334 46372 +38
|
Member
Author
|
ref (#7392) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A side effect of this is that failures could now happen regarding the type of a parameter even if the other file does not use strict typing. But it would make the original error of #7824 a lot more clear:
It now would cause something like this (which immediately points out the root of the issue):
instead of this:
@schiessle @blizzz @skjnldsv @juliushaertl @LukasReschke @irgendwie @Henni @pixelipo @rullzer @nickvergessen @daita @oparoz @karlitschek Does this makes sense for you? I guess it helps us a lot, but will also cause quite a lot of (valid) issues in the existing code.