Skip to content

Fix typos #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/ImportType.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion doc/Returns.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion doc/Template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion doc/Type.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.