for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\Core\Tests\ObjectTest;
use SilverStripe\Core\Extension;
use SilverStripe\Dev\TestOnly;
class ExtendTest2 extends Extension implements TestOnly
{
protected $constructorArgs = [];
public function __construct()
$this->constructorArgs = func_get_args();
}
public function extendableMethod($argument = null)
$argument
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$args = implode(',', array_filter(func_get_args()));
return "ExtendTest2($args)";
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.