Skip to content

Commit 9526cf7

Browse files
committed
refactor: apply rector
1 parent d62a3f2 commit 9526cf7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rector.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
use Ergebnis\Rector\Rules\Arrays\SortAssociativeArrayByKeyRector;
18+
use Ergebnis\Rector\Rules\Faker\GeneratorPropertyFetchToMethodCallRector;
1819
use Guanguans\Notify\Foundation\Concerns\AsJson;
1920
use Guanguans\Notify\Foundation\Concerns\AsPost;
2021
use Guanguans\Notify\Foundation\Rectors\AddSensitiveParameterAttributeRector;
@@ -90,6 +91,7 @@
9091

9192
ArraySpreadInsteadOfArrayMergeRector::class,
9293
EnumCaseToPascalCaseRector::class,
94+
GeneratorPropertyFetchToMethodCallRector::class,
9395
JsonThrowOnErrorRector::class,
9496
SafeDeclareStrictTypesRector::class,
9597
SortAssociativeArrayByKeyRector::class,

tests/Foundation/Authenticators/AuthenticatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Psr\Http\Message\RequestInterface;
2626

2727
it('can apply the certificate to options', function (): void {
28-
expect(new CertificateAuthenticator(fixtures_path('cert.pem'), fake()->password))
28+
expect(new CertificateAuthenticator(fixtures_path('cert.pem'), fake()->password()))
2929
->applyToOptions([])->toBeArray();
3030
})->group(__DIR__, __FILE__);
3131

0 commit comments

Comments
 (0)