File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1460,7 +1460,7 @@ public function populateTokenListeners()
14601460
14611461 $ tokens = $ this ->sniffs [$ sniffClass ]->register ();
14621462 if (is_array ($ tokens ) === false ) {
1463- $ msg = "The sniff $ sniffClass register() method must return an array. " ;
1463+ $ msg = "The sniff { $ sniffClass} :: register() method must return an array. " ;
14641464 $ this ->msgCache ->add ($ msg , MsgCollector::ERROR );
14651465
14661466 // Unregister the sniff.
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function testSniffWhereRegisterDoesNotReturnAnArrayThrowsException()
6262 $ config = new ConfigDouble (["--standard= $ standard " ]);
6363
6464 $ sniffClass = 'Fixtures \\TestStandard \\Sniffs \\InvalidSniffs \\RegisterNoArraySniff ' ;
65- $ message = "ERROR: The sniff $ sniffClass register() method must return an array. " .PHP_EOL .PHP_EOL ;
65+ $ message = "ERROR: The sniff { $ sniffClass} :: register() method must return an array. " .PHP_EOL .PHP_EOL ;
6666 $ this ->expectRuntimeExceptionMessage ($ message );
6767
6868 new Ruleset ($ config );
You can’t perform that action at this time.
0 commit comments