Skip to content

Commit a9bb300

Browse files
committed
build(deps): Update composer dependencies and scripts
- Upgrade 'ergebnis/composer-normalize' from '^2.45' to '^2.47' - Upgrade 'ergebnis/rector-rules' from '^1.3' to '^1.4' - Upgrade 'guanguans/monorepo-builder-worker' from '^1.4' to '^2.0' - Upgrade 'orchestra/testbench' from '^7.53' to '^7.54' - Upgrade various rector dependencies to newer versions - Adjust 'pest' command for better output formatting - Add missing configuration settings in 'ChannelTest.php' to ensure correct testing behavior.
1 parent e345e49 commit a9bb300

File tree

3 files changed

+58
-18
lines changed

3 files changed

+58
-18
lines changed

composer-updater

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ $status = (new SingleCommandApplication)
5858
private string $composerBinary;
5959
private array $exceptPackages;
6060
private array $exceptDependencyVersions;
61-
private bool $dryRun;
6261
private SymfonyStyle $symfonyStyle;
6362
private Differ $differ;
6463

@@ -71,7 +70,7 @@ $status = (new SingleCommandApplication)
7170
?string $composerBinary = null,
7271
array $exceptPackages = [],
7372
array $exceptDependencyVersions = [],
74-
bool $dryRun = false,
73+
private bool $dryRun = false,
7574
?SymfonyStyle $symfonyStyle = null,
7675
?Differ $differ = null
7776
) {
@@ -92,7 +91,6 @@ $status = (new SingleCommandApplication)
9291
'*@*',
9392
// '*|*',
9493
], $exceptDependencyVersions);
95-
$this->dryRun = $dryRun;
9694
$this->symfonyStyle = $symfonyStyle ?? new SymfonyStyle(new ArgvInput, new ConsoleOutput);
9795
$this->differ = $differ ?? new Differ;
9896
}
@@ -175,10 +173,11 @@ $status = (new SingleCommandApplication)
175173
}
176174

177175
foreach ($value as $package => &$dependencyVersion) {
178-
if (
179-
Str::is($this->exceptPackages, $package)
180-
|| Str::is($this->exceptDependencyVersions, $dependencyVersion)
181-
) {
176+
if (Str::is($this->exceptPackages, $package)) {
177+
continue;
178+
}
179+
180+
if (Str::is($this->exceptDependencyVersions, $dependencyVersion)) {
182181
continue;
183182
}
184183

composer.json

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@
9595
"composer/semver": "^3.4",
9696
"cweagans/composer-patches": "^1.7",
9797
"driftingly/rector-laravel": "^2.0",
98-
"ergebnis/composer-normalize": "^2.45",
98+
"ergebnis/composer-normalize": "^2.47",
9999
"ergebnis/json-printer": "^3.7",
100-
"ergebnis/rector-rules": "^1.3",
100+
"ergebnis/rector-rules": "^1.4",
101101
"guanguans/ai-commit": "dev-main",
102-
"guanguans/monorepo-builder-worker": "^1.4",
102+
"guanguans/monorepo-builder-worker": "^2.0",
103103
"laravel/facade-documenter": "dev-main",
104104
"mockery/mockery": "^1.6",
105105
"nette/utils": "^4.0",
106-
"orchestra/testbench": "^7.53 || ^8.0 || ^9.0 || ^10.0",
106+
"orchestra/testbench": "^7.54 || ^8.0 || ^9.0 || ^10.0",
107107
"pestphp/pest": "^1.23 || ^2.0 || ^3.0",
108108
"pestphp/pest-plugin-faker": "^1.0 || ^2.0 || ^3.0",
109109
"pestphp/pest-plugin-laravel": "^1.4 || ^2.0 || ^3.0",
@@ -113,14 +113,14 @@
113113
"phpstan/phpstan-deprecation-rules": "^2.0",
114114
"phpstan/phpstan-webmozart-assert": "^2.0",
115115
"rector/rector": "^2.0",
116-
"rector/swiss-knife": "^2.1",
117-
"rector/type-perfect": "^2.0",
116+
"rector/swiss-knife": "^2.2",
117+
"rector/type-perfect": "^2.1",
118118
"shipmonk/composer-dependency-analyser": "^1.8",
119119
"shipmonk/phpstan-baseline-per-identifier": "^2.1",
120120
"spatie/pest-plugin-snapshots": "^1.1 || ^2.0",
121-
"spaze/phpstan-disallowed-calls": "^4.4",
121+
"spaze/phpstan-disallowed-calls": "^4.5",
122122
"symplify/phpstan-extensions": "^12.0",
123-
"symplify/phpstan-rules": "^14.4",
123+
"symplify/phpstan-rules": "^14.6",
124124
"symplify/vendor-patches": "^11.4",
125125
"tomasvotruba/class-leak": "^2.0",
126126
"tomasvotruba/type-coverage": "^2.0",
@@ -250,15 +250,21 @@
250250
"mark-start": "printf '\\n!\\n!\\t\\033[0;36m%s\\033[0m\\n!\\n\\n' \"Started\"",
251251
"md-fix": "@md-lint --fix",
252252
"md-lint": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/",
253+
"neon-lint": "@php ./vendor/bin/neon-lint *.neon",
254+
"normalized": "@composer normalize --diff --ansi -v",
255+
"normalized-dry-run": "@normalized --dry-run",
253256
"peck": "/opt/homebrew/opt/php@8.3/bin/php ./vendor/bin/peck check --path=src/ --config=peck.json --ansi -v",
254257
"peck-init": "@peck --init",
255-
"pest": "@php ./vendor/bin/pest --coverage",
258+
"pest": "@php ./vendor/bin/pest --colors=always --min=90 --coverage",
259+
"pest-bail": "@pest --bail",
256260
"pest-coverage": "@pest --coverage-html=./.build/phpunit/ --coverage-clover=./.build/phpunit/clover.xml",
261+
"pest-disable-coverage-ignore": "@pest --disable-coverage-ignore",
257262
"pest-highest": [
258263
"@putenvs",
259264
"$PHP83 ./vendor/bin/pest --coverage"
260265
],
261266
"pest-migrate-configuration": "@pest --migrate-configuration",
267+
"pest-parallel": "@pest --parallel",
262268
"pest-profile": "@pest --profile",
263269
"pest-type-coverage": "@pest --type-coverage",
264270
"pest-update-snapshots": "@pest -d --update-snapshots",
@@ -326,8 +332,41 @@
326332
"zh-lint": "zhlint {./,docs/,docs/**/}*-zh_CN.md"
327333
},
328334
"scripts-aliases": {
329-
"lint": [
330-
"php-lint"
335+
"normalized": [
336+
"composer-normalize"
337+
],
338+
"normalized-dry-run": [
339+
"composer-normalize-dry-run"
340+
],
341+
"pest": [
342+
"test"
343+
],
344+
"pest-bail": [
345+
"test-bail"
346+
],
347+
"pest-coverage": [
348+
"test-coverage"
349+
],
350+
"pest-disable-coverage-ignore": [
351+
"test-disable-coverage-ignore"
352+
],
353+
"pest-highest": [
354+
"test-highest"
355+
],
356+
"pest-migrate-configuration": [
357+
"test-migrate-configuration"
358+
],
359+
"pest-parallel": [
360+
"test-parallel"
361+
],
362+
"pest-profile": [
363+
"test-profile"
364+
],
365+
"pest-type-coverage": [
366+
"test-type-coverage"
367+
],
368+
"pest-update-snapshots": [
369+
"test-update-snapshots"
331370
]
332371
},
333372
"$schema": "https://getcomposer.org/schema.json"

tests/Channels/ChannelTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848

4949
it('can attempt Exception', function (): void {
5050
config()->set('exception-notify.rate_limiter.max_attempts', 3);
51+
config()->set('exception-notify.rate_limiter.decay_seconds', 1);
52+
config()->set('cache.default', 'array');
5153
expect(fn () => $this->attempt(new RuntimeException(microtime())))
5254
->call($logChannel = resolve(ExceptionNotifyManager::class)->channel('log'))->toBeTrue()
5355
->call($logChannel)->toBeTrue()

0 commit comments

Comments
 (0)