8000 Fix typos by szepeviktor · Pull Request #12133 · composer/composer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix typos #12133

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 3 commits into from
Oct 2, 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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@
* UX Change: Packages from `path` repositories which are symlinked in the vendor dir will always be updated in partial updates to avoid mistakes when the original composer.json changes but the symlinked package is not explicitly updated (#9765)
* Added `reinstall` command that takes one or more package names, including wildcard (`*`) support, and removes then reinstalls them in the exact same version they had (#9915)
* Added support for parallel package installs on Windows via [7-Zip](https://www.7-zip.org/) if it is installed (#9875)
* Added detection of invalid composer.lock files that do not fullfil the composer.json requirements to `validate` command (#9899)
* Added detection of invalid composer.lock files that do not fulfill the composer.json requirements to `validate` command (#9899)
* Added `InstalledVersions::getInstalledPackagesByType(string $type)` to retrieve installed plugins for example, [read more](https://getcomposer.org/doc/07-runtime.md#knowing-which-packages-of-a-given-type-are-installed) (#9699)
* Added `InstalledVersions::getInstalledPath(string $packageName)` to retrieve the install path of a given package, [read more](https://getcomposer.org/doc/07-runtime.md#knowing-the-path-in-which-a-package-is-installed) (#9699)
* Added flag to `InstalledVersions::isInstalled()` to allow excluding dev requirements from that check (#9682)
Expand Down Expand Up @@ -1150,7 +1150,7 @@
* Added a `--no-cache` flag available on all commands to run with the cache disabled
* Added PHP_BINARY as env var pointing to the PHP process when executing Composer scripts as shell scripts
* Added a `use-github-api` config option which can set the `no-api` flag on all GitHub VCS repositories declared
* Added a static helper you can preprend to a script to avoid process timeouts, `"Composer\\Config::disableProcessTimeout"`
* Added a static helper you can prepend to a script to avoid process timeouts, `"Composer\\Config::disableProcessTimeout"`
* Added Event::getOriginatingEvent to retrieve an event's original event when a script handler forwards to another one
* Added support for autoloading directly from a phar file
* Fixed loading order of plugins to always initialize them in order of dependencies
Expand Down
2 changes: 1 addition & 1 deletion doc/articles/authentication-for-private-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ php composer.phar config [--global] --editor --auth

## github-oauth

To create a new access token, head to your [token settings section on Github](https://github.com/settings/tokens) and [generate a new token](https://github.com/settings/tokens/new).
To create a new access token, head to your [token settings section on GitHub](https://github.com/settings/tokens) and [generate a new token](https://github.com/settings/tokens/new).

For public repositories when rate limited, a token *without* any particular scope is sufficient (see `(no scope)` in the [scopes documentation](https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps)). Such tokens grant read-only access to public information.

Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Command/ConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ private function getAuthConfigFile(InputInterface $input, Config $config): strin
}

/**
* Suggest setting-keys, while taking given options in acount.
* Suggest setting-keys, while taking given options in account.
*/
private function suggestSettingKeys(): \Closure
{
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Command/DiagnoseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
} elseif (10 > $rate['remaining']) {
$io->write('<warning>WARNING</warning>');
$io->write(sprintf(
'<comment>Github has a rate limit on their API. '
'<comment>GitHub has a rate limit on their API. '
. 'You currently have <options=bold>%u</options=bold> '
. 'out of <options=bold>%u</options=bold> requests left.' . PHP_EOL
. 'See https://developer.github.com/v3/#rate-limiting and also' . PHP_EOL
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Repository/Vcs/GitLabDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function initialize(): void
;
$origin = self::determineOrigin($configuredDomains, $guessedDomain, $urlParts, $match['port']);
if (false === $origin) {
throw new \LogicException('It should not be possible to create a gitlab driver with an unparseable origin URL ('.$this->url.')');
throw new \LogicException('It should not be possible to create a gitlab driver with an unparsable origin URL ('.$this->url.')');
}
$this->originUrl = $origin;

Expand Down
6 changes: 3 additions & 3 deletions tests/Composer/Test/Command/InitCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,11 +707,11 @@ public function testInteractiveRun(): void

$appTester->setInputs([
'vendor/pkg', // Pkg name
'my desciption', // Description
'my description', // Description
'Mr. Test <test@example.org>', // Author
'stable', // Minimum stability
'library', // Type
'AGPL-3.0-only', // License
'AGPL-3.0-only', // License
'no', // Define dependencies
'no', // Define dev dependencies
'n', // Add PSR-4 autoload mapping
Expand All @@ -724,7 +724,7 @@ public function testInteractiveRun(): void

$expected = [
'name' => 'vendor/pkg',
'description' => 'my desciption',
'description' => 'my description',
'type' => 'library',
'license' => 'AGPL-3.0-only',
'authors' => [['name' => 'Mr. Test', 'email' => 'test@example.org']],
Expand Down
4 changes: 2 additions & 2 deletions tests/Composer/Test/Console/HtmlOutputFormatterTest.php
AE88
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public function testFormatting(): void
]);

self::assertEquals(
'text <span style="color:green;">green</span> <span style="color:yellow;">yellow</span> <span style="color:black;background-color:yellow;">black w/ yello bg</span>',
$formatter->format('text <info>green</info> <comment>yellow</comment> <warning>black w/ yello bg</warning>')
'text <span style="color:green;">green</span> <span style="color:yellow;">yellow</span> <span style="color:black;background-color:yellow;">black w/ yellow bg</span>',
$formatter->format('text <info>green</info> <comment>yellow</comment> <warning>black w/ yellow bg</warning>')
);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #4319 ( github.com/composer/composer/issues/4319 ).
See GitHub issue #4319 ( github.com/composer/composer/issues/4319 ).

Present a clear error message when config.platform.php version results in a conflict rule.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #4795 ( github.com/composer/composer/issues/4795 ).
See GitHub issue #4795 ( github.com/composer/composer/issues/4795 ).

Composer\Installer::allowListUpdateDependencies should not output a warning for dependencies that need to be updated
that are also a root package, when that root package is also explicitly allowed.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #4795 ( github.com/composer/composer/issues/4795 ).
See GitHub issue #4795 ( github.com/composer/composer/issues/4795 ).

Composer\Installer::allowListUpdateDependencies intentionally ignores root requirements even if said package is also a
dependency of one the requirements that is allowed for update.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #8902 ( https://github.com/composer/composer/issues/8902 ).
See GitHub issue #8902 ( https://github.com/composer/composer/issues/8902 ).

Avoid installing packages twice if they are required in different versions and one is matched by a dev package.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #8903 ( https://github.com/composer/composer/issues/8903 ).
See GitHub issue #8903 ( https://github.com/composer/composer/issues/8903 ).

Recursive output of learnt rules can lead to infinite loop.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #9012 ( https://github.com/composer/composer/issues/9012 and https://gist.github.com/Seldaek/4e2dbc2cea4b4fd7a8207bb310ec8e34).
See GitHub issue #9012 ( https://github.com/composer/composer/issues/9012 and https://gist.github.com/Seldaek/4e2dbc2cea4b4fd7a8207bb310ec8e34).

Recursive analysis of the same learnt rules can lead to infinite recursion in solver.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #9290 ( https://github.com/composer/composer/issues/9290 ).
See GitHub issue #9290 ( https://github.com/composer/composer/issues/9290 ).
MultiConflictRule with a level 1 decision needs to exit correctly.

--COMPOSER--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--TEST--

See Github issue #6661 ( github.com/composer/composer/issues/6661 ).
See GitHub issue #6661 ( github.com/composer/composer/issues/6661 ).

When `--with-all-dependencies` is used, Composer should update the dependencies of all allowed packages, even if the dependency is a root requirement.

Expand Down
Loading
0