Skip to content

Commit acf8f5e

Browse files
authored
Minor spelling creatForHostVersion() -> createForHostVersion() (#1087)
1 parent ae59794 commit acf8f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UPGRADE-5.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `ParserFactory::create()` method has been removed in favor of three new meth
3737
* `createForHostVersion()`: Use this if you're parsing code for the PHP version you're running on.
3838
* `createForVersion()`: Use this if you know the PHP version of the code you want to parse.
3939

40-
The `createForNewestSupportedVersion()` and `creatForHostVersion()` are available since PHP-Parser 4.18.0, to allow libraries to support PHP-Parser 4 and 5 at the same time more easily.
40+
The `createForNewestSupportedVersion()` and `createForHostVersion()` are available since PHP-Parser 4.18.0, to allow libraries to support PHP-Parser 4 and 5 at the same time more easily.
4141

4242
In all cases, the PHP version is a fairly weak hint that is only used on a best-effort basis. The parser will usually accept code for newer versions if it does not have any backwards-compatibility implications.
4343

0 commit comments

Comments
 (0)