Adds static visibility to __set_state() methods
class SomeClass
{
- public function __set_state($properties) {
+ public static function __set_state($properties) {
}
}
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\ClassMethod\SetStateToStaticRector;
return RectorConfig::configure()
->withRules([
SetStateToStaticRector::class,
]);