Skip to content

Commit 90cd729

Browse files
committed
fix remaining failing test
1 parent 918e7a4 commit 90cd729

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/RuntimeChecker/InlineCheckerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@
131131
describe('checkVariable: Callables & Direct Returns', function () {
132132
test('wraps callable variable in lazy proxy', function () {
133133
$registry = new TypeValidatorRegistry();
134-
$cb = fn (int $id): string => "user_{$id}";
134+
$cb = fn(int $id): string => "user_{$id}";
135135

136136
$wrapped = InlineChecker::checkVariable($cb, 'callable(positive-int): non-empty-string', 'formatter', __FILE__, $registry);
137137

138138
expect($wrapped)->toBeCallable()
139139
->and($wrapped(10))->toBe('user_10');
140140

141-
expect(fn () => $wrapped(-5))->toThrow(TypeError::class, 'positive-int');
141+
expect(fn() => $wrapped(-5))->toThrow(TypeError::class, 'positive-int');
142142
});
143143

144144
test('formats error message context as Return value when varName is return', function () {
@@ -181,7 +181,7 @@
181181

182182
$invalid = InlineChecker::checkProperty(['invalid'], $fixture, 'numbers', __FILE__, $registry);
183183
expect($invalid)->toBeInstanceOf(ErrorMessage::class)
184-
->and($invalid->getMessage())->toContain("numbers['0']");
184+
->and($invalid->getMessage())->toContain('numbers[0]');
185185
});
186186

187187
test('validates static class properties against @var docblock', function () {
@@ -236,4 +236,4 @@
236236
expect(InlineChecker::checkProperty('raw', $fixture, 'nonExistentProperty', __FILE__, $registry))->toBe('raw');
237237
});
238238
});
239-
});
239+
});

0 commit comments

Comments
 (0)