From fe8d53bdef70926f0852bb05f4642d38b3fea854 Mon Sep 17 00:00:00 2001 From: Igor Popov Date: Thu, 19 May 2022 11:30:44 +0300 Subject: [PATCH] change type hinting url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7993ede..17756a9 100644 --- a/README.md +++ b/README.md @@ -1103,7 +1103,7 @@ function travelToTexas(Vehicle $vehicle): void If you are working with basic primitive values like strings, integers, and arrays, and you use PHP 7+ and you can't use polymorphism but you still feel the need to type-check, you should consider -[type declaration](http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration) +[type declaration](https://www.php.net/manual/en/language.types.declarations.php) or strict mode. It provides you with static typing on top of standard PHP syntax. The problem with manually type-checking is that doing it will require so much extra verbiage that the faux "type-safety" you get doesn't make up for the lost