for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class Nip_Form_Element_Textarea extends Nip_Form_Element_Abstract
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
Nip_Form_Element_Abstract
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
class Nip_Form_Element_Textarea extends /** @scrutinizer ignore-deprecated */ Nip_Form_Element_Abstract
{
protected $_type = 'textarea';
public function init()
$this->setAttrib('rows', 10);
$this->setAttrib('cols', 35);
$this->addClass('text', 'cr');
}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.