Add PHPCS ignore for errors in class debug test file
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php // phpcs:ignore warning
|
||||||
|
declare(strict_types=1);
|
||||||
/**
|
/**
|
||||||
* @phan-file-suppress PhanTypeSuspiciousStringExpression
|
* @phan-file-suppress PhanTypeSuspiciousStringExpression
|
||||||
*/
|
*/
|
||||||
@@ -59,6 +60,7 @@ print "C->DEBUG(html,strip): ".$debug->debug('CLASS-TEST-DEBUG', 'HTML TAG<br><b
|
|||||||
print "C->PRINTERRORMSG: <br>".$debug->printErrorMsg()."<br>";
|
print "C->PRINTERRORMSG: <br>".$debug->printErrorMsg()."<br>";
|
||||||
echo "<b>CLASS DEBUG CALL</b><br>";
|
echo "<b>CLASS DEBUG CALL</b><br>";
|
||||||
|
|
||||||
|
// @codingStandardsIgnoreLine
|
||||||
class TestL
|
class TestL
|
||||||
{
|
{
|
||||||
public $log;
|
public $log;
|
||||||
@@ -74,6 +76,7 @@ class TestL
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// @codingStandardsIgnoreLine
|
||||||
class TestR extends TestL
|
class TestR extends TestL
|
||||||
{
|
{
|
||||||
public $foo;
|
public $foo;
|
||||||
@@ -101,6 +104,7 @@ print "CLASS EXTEND: DEBUG/tr: ".$tr->subTest()."<br>";
|
|||||||
print "CLASS EXTEND: PRINTERRORMSG: <br>".$tr->log->printErrorMsg()."<br>";
|
print "CLASS EXTEND: PRINTERRORMSG: <br>".$tr->log->printErrorMsg()."<br>";
|
||||||
|
|
||||||
// test attaching a logger from outside
|
// test attaching a logger from outside
|
||||||
|
// @codingStandardsIgnoreLine
|
||||||
class AttachOutside
|
class AttachOutside
|
||||||
{
|
{
|
||||||
public $log;
|
public $log;
|
||||||
|
|||||||
Reference in New Issue
Block a user