for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ProxyManagerTestAsset;
/**
* Test asset class with method with default values
*
* @author Marco Pivetta <[email protected]>
* @license MIT
*/
class ClassWithMethodWithDefaultParameters
{
* @param array $parameter
* @return string
public function publicMethodWithDefaults(array $parameter = ['foo'])
$parameter
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return 'defaultValue';
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.