-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable strict types #2854
Enable strict types #2854
Conversation
Loads of string casts to be added 😅 |
12fb8e1
to
a14b808
Compare
7b7cffe
to
c5e8a7c
Compare
fd275f8
to
c78e0e5
Compare
72cddfb
to
d8f1786
Compare
67bd64c
to
7e5fb71
Compare
a640b82
to
e7b6c16
Compare
ad01eea
to
beb6031
Compare
@@ -273,7 +275,7 @@ public function testGeneratesForeignKeySqlOnlyWhenSupportingForeignKeys() | |||
} | |||
} | |||
|
|||
protected function getBitAndComparisonExpressionSql($value1, $value2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I miss the PHP 7.1 strictness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand, I added typehints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. The change is correct. I was saying that this issue wouldn't be possible on PHP 7.1 which doesn't allow loosening argument types in subclasses. I oversaw it recently in #3498.
$extraParameters = array_slice(func_get_args(), 3); | ||
|
||
if (count($extraParameters) !== 0) { | ||
$extraParameters[0] = $extraParameters[0] ?? 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really see how we can improve here. Unlike the userland optional arguments defaulting to some value, the internal arguments are counted, so we have to respect the expected number of arguments being passed and their types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the issue in OCI8Exception
, I don't see anything else worth reworking.
Enable strict types
Enable strict types
No description provided.