Browse Source

Fix coding standard

Adam Halfar 1 year ago
parent
commit
6ec032ee75
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/TestCase/Database/QueryTest.php
  2. 1 1
      tests/TestCase/Error/DebuggerTest.php

+ 1 - 1
tests/TestCase/Database/QueryTest.php

@@ -84,7 +84,7 @@ class QueryTest extends TestCase
         $this->assertSame(Connection::ROLE_WRITE, $selectQuery->useWriteRole()->getConnectionRole());
     }
 
-    protected function newQuery(): \Cake\Database\Query
+    protected function newQuery(): Query
     {
         return new class ($this->connection) extends Query
         {

+ 1 - 1
tests/TestCase/Error/DebuggerTest.php

@@ -601,7 +601,7 @@ TEXT;
         $this->assertDoesNotMatchRegularExpression('/^Cake\\\Test\\\TestCase\\\Error\\\DebuggerTest..testTraceExclude/m', $result);
     }
 
-    protected function _makeException(): \RuntimeException
+    protected function _makeException(): RuntimeException
     {
         return new RuntimeException('testing');
     }