Open codemagpie opened 1 year ago
ide version: plugin version: code:
<?php declare(strict_types=1); abstract class AbstractFoo { public static array $status = []; /** * @param string $state = static::$status [$any] * @return static */ public function writeState(string $state): AbstractFoo { return $this; } } class Foo extends AbstractFoo { public static array $status = ['enable', 'disable']; public function todo() { $t = $this->writeState('enable') // support ->writeState('disable') // support ->writeState(''); // no support } }
ide version:
plugin version:
code: