Skip to content

Commit e13066f

Browse files
tillschandergithub-actions[bot]
authored andcommitted
Fix styling
1 parent ad69b55 commit e13066f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/Integration/ContextTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,11 +696,11 @@ function () use (&$global) {
696696

697697
test('internal context lookup with simple object', function (bool $strict) {
698698
$context = new RenderContext(options: new RenderContextOptions(strictVariables: $strict));
699-
$context->set('object', new SimpleClass());
699+
$context->set('object', new SimpleClass);
700700

701701
expect($context->get('object.simpleProperty'))->toBe('foo');
702702
expect($context->get('object.nullProperty'))->toBe(null);
703-
expect(fn() => $context->get('object.protectedProperty'))->toThrow(Error::class);
703+
expect(fn () => $context->get('object.protectedProperty'))->toThrow(Error::class);
704704

705705
if ($strict) {
706706
expect($context->get('object.nonExistingProperty'))->toBeInstanceOf(UndefinedVariable::class);
@@ -716,7 +716,7 @@ function () use (&$global) {
716716

717717
test('internal context lookup magic object', function (bool $strict) {
718718
$context = new RenderContext(options: new RenderContextOptions(strictVariables: $strict));
719-
$context->set('object', new MagicClass());
719+
$context->set('object', new MagicClass);
720720

721721
expect($context->get('object.simpleProperty'))->toBe('foo');
722722
expect($context->get('object.nullProperty'))->toBe(null);

tests/Stubs/SimpleClass.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
class SimpleClass
66
{
77
public string $simpleProperty = 'foo';
8+
89
public ?string $nullProperty = null;
10+
911
protected string $protectedProperty = 'foo';
1012

1113
public function simpleMethod(): string

0 commit comments

Comments
 (0)