diff --git a/doc/ImportType.md b/doc/ImportType.md index c986968..391e5f7 100644 --- a/doc/ImportType.md +++ b/doc/ImportType.md @@ -4,7 +4,7 @@ This attribute is the equivalent of the `@import-type` annotation and is used to ## Arguments -The attribute accepts one or more strings which list the class from which the aliased type neeeds to be imported. The attribute itself does not have a knowledge of which types are valid and which are not and this will depend on the implementation for each particular tool. +The attribute accepts one or more strings which list the class from which the aliased type needs to be imported. The attribute itself does not have a knowledge of which types are valid and which are not and this will depend on the implementation for each particular tool. The arguments can be named arguments and the type is aliased with the name of the argument and the value is the name of the class from which it needs to be imported. diff --git a/doc/Returns.md b/doc/Returns.md index 8df0e12..15bf5a2 100644 --- a/doc/Returns.md +++ b/doc/Returns.md @@ -4,7 +4,7 @@ This attribute is the equivalent of the `@return` annotation. It can be used on We could not use `Return` for the name of this attribute because `return` is a reserved word in PHP. -Instead of using this attribute, you can also use the `Type` aatribute which provides equivalent functionality. +Instead of using this attribute, you can also use the `Type` attribute which provides equivalent functionality. ## Arguments diff --git a/doc/Template.md b/doc/Template.md index 19e850a..b668050 100644 --- a/doc/Template.md +++ b/doc/Template.md @@ -33,7 +33,7 @@ class TemplateExample { } - // Multiple type varibles listed in multiple attributes + // Multiple type variables listed in multiple attributes #[Template('T1')] #[Template('T2')] public function multipleMethodTemplates(array $param1, array $param2) diff --git a/doc/Type.md b/doc/Type.md index c8d2d9b..624723f 100644 --- a/doc/Type.md +++ b/doc/Type.md @@ -50,4 +50,4 @@ This attribute can only be used to specify a type for class properties or class $result = $this->getResult(); ``` -This is because PHP attributes cannot be applied to arbitraty code, they can only be applied to specific targets like classes, functions, methods or properties. So the `@var` annotation might still be needed. However, if your code has good type coverage, ideally you should never need to use this kind of annotation. \ No newline at end of file +This is because PHP attributes cannot be applied to arbitrary code, they can only be applied to specific targets like classes, functions, methods or properties. So the `@var` annotation might still be needed. However, if your code has good type coverage, ideally you should never need to use this kind of annotation. \ No newline at end of file