File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -696,11 +696,11 @@ function () use (&$global) {
696696
697697test ('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
717717test ('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 );
Original file line number Diff line number Diff line change 55class 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
You can’t perform that action at this time.
0 commit comments