Skip to content

Commit 2374fe6

Browse files
committed
Merge branch 'add-curler-recorder'
2 parents 44f425c + ef1a250 commit 2374fe6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1329
-697
lines changed

.phive/phars.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="lkrms/pretty-php" version="^0.4.48" installed="0.4.66" location="./tools/pretty-php" copy="true"/>
4-
<phar name="php-cs-fixer" version="^3.46.0" installed="3.62.0" location="./tools/php-cs-fixer" copy="true"/>
3+
<phar name="lkrms/pretty-php" version="^0.4.48" installed="0.4.70" location="./tools/pretty-php" copy="true"/>
4+
<phar name="php-cs-fixer" version="^3.46.0" installed="3.64.0" location="./tools/php-cs-fixer" copy="true"/>
55
<phar name="salient-labs/changelog" version="^1.0.5" installed="1.0.6" location="./tools/changelog" copy="true"/>
66
</phive>

docs/App.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,34 @@ Unless running from source or on Windows, [Application][Application] and
77
Specification][xdg-base-spec] when creating directories for storage of
88
application data.
99

10-
| `Application` method | `.env` override | Default (Phar, *nix) | Default (Phar, Windows) | Default (running from source) |
10+
| `Application` method | `.env` override | Default (Phar, \*nix) | Default (Phar, Windows) | Default (running from source) |
1111
| -------------------- | ----------------- | --------------------------------- | ---------------------------- | ----------------------------- |
1212
| `getBasePath()` | app_base_path[^1] | | | |
1313
| `getCachePath()` | app_cache_path | `$XDG_CACHE_HOME/<App>/cache`[^2] | `%LOCALAPPDATA%/<App>/cache` | `<BasePath>/var/cache` |
14-
| `getConfigPath()` | app_config_path | `$XDG_CONFIG_HOME/<App>`[^3] | `%APPDATA%/<App>/config` | `<BasePath>/config` |
15-
| `getDataPath()` | app_data_path | `$XDG_DATA_HOME/<App>`[^4] | `%APPDATA%/<App>/data` | `<BasePath>/var/lib` |
14+
| `getConfigPath()` | app_config_path | `$XDG_CONFIG_HOME/<App>`[^3] | `%APPDATA%/<App>/config` | `<BasePath>/var/lib/config` |
15+
| `getDataPath()` | app_data_path | `$XDG_DATA_HOME/<App>`[^4] | `%APPDATA%/<App>/data` | `<BasePath>/var/lib/data` |
1616
| `getLogPath()` | app_log_path | `$XDG_CACHE_HOME/<App>/log` | `%LOCALAPPDATA%/<App>/log` | `<BasePath>/var/log` |
1717
| `getTempPath()` | app_temp_path | `$XDG_CACHE_HOME/<App>/tmp` | `%LOCALAPPDATA%/<App>/tmp` | `<BasePath>/var/tmp` |
1818

19-
[^1]: `app_base_path` is always ignored if `$basePath` is passed to
19+
[^1]:
20+
`app_base_path` is always ignored if `$basePath` is passed to
2021
[Application][Application]'s constructor.
2122

22-
[^2]: If `XDG_CACHE_HOME` is empty or not set, `$HOME/.cache` is used as the
23+
[^2]:
24+
If `XDG_CACHE_HOME` is empty or not set, `$HOME/.cache` is used as the
2325
default
2426

25-
[^3]: If `XDG_CONFIG_HOME` is empty or not set, `$HOME/.config` is used as the
27+
[^3]:
28+
If `XDG_CONFIG_HOME` is empty or not set, `$HOME/.config` is used as the
2629
default
2730

28-
[^4]: If `XDG_DATA_HOME` is empty or not set, `$HOME/.local/share` is used as
29-
the default
30-
31-
32-
[Application]: https://salient-labs.github.io/toolkit/Salient.Container.Application.html
33-
[CliApplication]: https://salient-labs.github.io/toolkit/Salient.Cli.CliApplication.html
34-
[xdg-base-spec]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
31+
[^4]:
32+
If `XDG_DATA_HOME` is empty or not set, `$HOME/.local/share` is used as the
33+
default
3534

35+
[Application]:
36+
https://salient-labs.github.io/toolkit/Salient.Container.Application.html
37+
[CliApplication]:
38+
https://salient-labs.github.io/toolkit/Salient.Cli.CliApplication.html
39+
[xdg-base-spec]:
40+
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

docs/Builders.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class Option implements Buildable
2323
protected $ValueType;
2424
protected $Description;
2525

26+
/**
27+
* @internal
28+
*/
2629
public function __construct(
2730
$long = null,
2831
$short = null,

phpstan-baseline-7.4.neon

Lines changed: 0 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline-8.3.neon

Lines changed: 0 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Toolkit/Cli/CliOption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ final class CliOption implements Buildable, JsonSchemaInterface, Immutable, Read
301301
private bool $IsLoaded = false;
302302

303303
/**
304-
* Creates a new CliOption object
304+
* @internal
305305
*
306306
* @param string|null $name The name of the option (ignored if not
307307
* positional; must start with a letter, number or underscore, followed by

src/Toolkit/Cli/Exception/CliInvalidArgumentsException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class CliInvalidArgumentsException extends AbstractMultipleErrorException
1414
public function __construct(string ...$errors)
1515
{
1616
parent::__construct('Invalid arguments', ...$errors);
17+
18+
// Must be called after parent::__construct()
1719
$this->ExitStatus = 1;
1820
}
1921
}

0 commit comments

Comments
 (0)