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 @@ -50,7 +50,7 @@ public function getGrammar(): Grammar
5050
5151 private function registerToken (string $ class , string $ regex , int $ priority ): void
5252 {
53- $ this ->tokens [$ class ] = new class ($ class , $ regex , $ priority ) {
53+ $ this ->tokens [$ class ] = new class ($ class , $ regex , $ priority ) {
5454 public function __construct (
5555 public string $ class ,
5656 public string $ regex ,
Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ public function givenAnObjectWhenMagicMethodsAreCalledDirectlyItShouldThrowAnExc
119119 $ this ->expectException (ParserException::class);
120120 $ this ->expectExceptionMessage ("Forbidden method \"{$ magicMethod }\" at position 6 " );
121121
122- $ myObj = new class () {};
122+ $ myObj = new class () {
123+ };
123124
124125 $ variables = [
125126 'my_obj ' => $ myObj ,
@@ -131,7 +132,8 @@ public function givenAnObjectWhenMagicMethodsAreCalledDirectlyItShouldThrowAnExc
131132 /** @test */
132133 public function undefinedMethodsShouldThrowAnError (): void
133134 {
134- $ myObj = new class () {};
135+ $ myObj = new class () {
136+ };
135137
136138 $ variables = [
137139 'my_obj ' => $ myObj ,
You can’t perform that action at this time.
0 commit comments