Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: phpstorm: implement method final Date: Fri, 9 Oct 2020 13:55:26 +0200 Lines: 32 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net IIluoJsyMlGoCz0N/NWX0QiSuBkD2yuOBJgZACsqFF/vELSNW3 Cancel-Lock: sha1:/1sCJWixLUfbcsBsZyA2BelBYKo= In-Reply-To: Xref: csiph.com comp.lang.php:18377 alex: > Il 08/10/20 18:19, J.O. Aho ha scritto: >> On 08/10/2020 09:52, alex wrote: >> >>> But I would like the methods implemented through phpstorm to be final. >> >> If you want to auto prefix a funcion with final, then ask how to do that >> in phpstorm at the jetbrain web forum. >> >>> class C implements I { >>>    final public function sniff() { >>>       // TODO: Implement sniff() method. >>>    } >>> } >>> >>> You can? >> >> https://www.php.net/manual/en/language.oop5.final.php >> > > ???? I think J.O. Aho wanted to point out, that "final" is available since PHP 5 and you can just use it. However you're question was how get PHPStorm to add this prefix automatically - sorry, I don't know an answer to that either. -- Arno Welzel https://arnowelzel.de