Skip to content

Commit 0e5721f

Browse files
Merge pull request #1 from szepeviktor/typos
Fix typos
2 parents 0dfc067 + b8e4fe7 commit 0e5721f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

doc/ImportType.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This attribute is the equivalent of the `@import-type` annotation and is used to
44

55
## Arguments
66

7-
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.
7+
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.
88

99
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.
1010

doc/Returns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This attribute is the equivalent of the `@return` annotation. It can be used on
44

55
We could not use `Return` for the name of this attribute because `return` is a reserved word in PHP.
66

7-
Instead of using this attribute, you can also use the `Type` aatribute which provides equivalent functionality.
7+
Instead of using this attribute, you can also use the `Type` attribute which provides equivalent functionality.
88

99
## Arguments
1010

doc/Template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TemplateExample
3333
{
3434
}
3535

36-
// Multiple type varibles listed in multiple attributes
36+
// Multiple type variables listed in multiple attributes
3737
#[Template('T1')]
3838
#[Template('T2')]
3939
public function multipleMethodTemplates(array $param1, array $param2)

doc/Type.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ This attribute can only be used to specify a type for class properties or class
5050
$result = $this->getResult();
5151
```
5252

53-
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.
53+
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.

0 commit comments

Comments
 (0)