Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into chore/deps
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Oct 14, 2023
2 parents 53728ff + af0684e commit b259fd1
Show file tree
Hide file tree
Showing 23 changed files with 258 additions and 298 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/composer-root-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ name: RootVersionChecker
on:
push:
branches: [ main ]
pull_request:
pull_request: ~
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"

# See https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
cs-lint:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: End-to-End Tests
on:
push:
branches: [ main ]
pull_request:
pull_request: ~
release:
types: [ created ]
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"

# See https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-test-phar:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ name: Lint
on:
push:
branches: [ main ]
pull_request:
pull_request: ~
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"

# See https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
cs:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: Release
on:
push:
branches: [ main ]
pull_request:
pull_request: ~
release:
types: [ created ]
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"

# See https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build-phar:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: Security
on:
push:
branches: [ main ]
pull_request:
pull_request: ~
release:
types: [ created ]
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"

# See https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
security:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ name: Tests
on:
push:
branches: [ main ]
pull_request:
pull_request: ~
release:
types: [ created ]
types: [ created ] ~
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"

# See https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
root-version:
Expand Down
2 changes: 1 addition & 1 deletion composer-root-version-checker/src/CouldNotParseTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function noNameTagFound(
}

public static function withReason(
null|bool|int|float|string $tag,
null|bool|float|int|string $tag,
string $reason
): self {
return new self(
Expand Down
2 changes: 1 addition & 1 deletion composer-root-version-checker/src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __destruct()
$this->writeRecords();
}

public function log($level, Stringable|string $message, array $context = []): void
public function log($level, string|Stringable $message, array $context = []): void
{
$record = sprintf('[%s] %s', $level, $message).PHP_EOL;

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
],
"require": {
"php": "^8.1",
"fidry/console": "^0.5.0",
"fidry/console": "^0.5.0 || ^0.6.0",
"fidry/filesystem": "^1.1",
"jetbrains/phpstorm-stubs": "^v2022.2",
"nikic/php-parser": "^4.12",
"symfony/console": "^5.2 || ^6.0",
"symfony/filesystem": "^5.2 || ^6.0",
"symfony/finder": "^5.2 || ^6.0",
"thecodingmachine/safe": "^1.3 || ^2.0"
"thecodingmachine/safe": "^2.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.1",
Expand Down
190 changes: 95 additions & 95 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Autoload/ScoperAutoloadGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private static function createClassAliasStatement(
*
* @return list<string>
*/
private static function wrapStatementsInNamespaceBlock(string $namespace, string|array $statements): array
private static function wrapStatementsInNamespaceBlock(string $namespace, array|string $statements): array
{
if (is_string($statements)) {
$statements = explode(self::$eol, $statements);
Expand Down
Loading

0 comments on commit b259fd1

Please sign in to comment.