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
11031103If you are working with basic primitive values like strings, integers, and arrays,
11041104and you use PHP 7+ and you can't use polymorphism but you still feel the need to
11051105type-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 )
11071107or strict mode. It provides you with static typing on top of standard PHP syntax.
11081108The problem with manually type-checking is that doing it will require so much
11091109extra 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