File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1103,7 +1103,7 @@ function travelToTexas(Vehicle $vehicle): void
1103
1103
If you are working with basic primitive values like strings, integers, and arrays,
1104
1104
and you use PHP 7+ and you can't use polymorphism but you still feel the need to
1105
1105
type-check, you should consider
1106
- [ type declaration] ( http ://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration )
1106
+ [ type declaration] ( https ://www. php.net/manual/en/language.types.declarations.php )
1107
1107
or strict mode. It provides you with static typing on top of standard PHP syntax.
1108
1108
The problem with manually type-checking is that doing it will require so much
1109
1109
extra verbiage that the faux "type-safety" you get doesn't make up for the lost
You can’t perform that action at this time.
0 commit comments