Skip to content
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

Docs: various minor fixes #614

Merged
merged 1 commit into from
Sep 18, 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 autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static function determineLoadedClass($classesBeforeLoad, $classesAfterLoa
}

// Since PHP 7.4 get_declared_classes() does not guarantee any order, making
// it impossible to use order to determine which is the parent an which is the child.
// it impossible to use order to determine which is the parent and which is the child.
// Let's reduce the list of candidates by removing all the classes known to be "parents".
// That way, at the end, only the "main" class just included will remain.
$newClasses = array_reduce(
Expand Down
2 changes: 1 addition & 1 deletion src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ protected function tokenize($string)
}

/*
Close an open "inside constant declaration" marker when no keyword convertion was needed.
Close an open "inside constant declaration" marker when no keyword conversion was needed.
*/

if ($insideConstDeclaration === true
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public static function isCamelCaps(
*/
public static function isUnderscoreName($string)
{
// If there are space in the name, it can't be valid.
// If there is whitespace in the name, it can't be valid.
if (strpos($string, ' ') !== false) {
return false;
}
Expand Down