Skip to content

Commit ed97ede

Browse files
committed
Disallow debug functions usage
1 parent b9a67ed commit ed97ede

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace CakeDC\PHPStan\Test\TestCase\Rule\Debug\Fake;
5+
6+
use Cake\Error\Debugger;
7+
use DebugKit\DebugSql;
8+
9+
class FailingDebugStaticUseLogic
10+
{
11+
/**
12+
* @return void
13+
*/
14+
public function execute(): void
15+
{
16+
Debugger::dump(['a' => 1, 'b' => 2, 'c' => 3]);
17+
Debugger::printVar(['y' => 10, 'x' => 20, 'z' => 30]);
18+
DebugSql::sql();
19+
DebugSql::sqld();
20+
}
21+
}

0 commit comments

Comments
 (0)