Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: phpstorm: implement method final Date: Sat, 10 Oct 2020 14:33:30 +0200 Lines: 44 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net NIJnrWGROEMuymFWN6WPZAiYOb4xKB8rmRbU0kak9OTt/0jDzA Cancel-Lock: sha1:ggLK8siOrMuOwjqiHyrsW0lbYY0= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 In-Reply-To: Content-Language: en-US-large Xref: csiph.com comp.lang.php:18384 On 10/10/2020 13:40, alex wrote: > Il 09/10/20 23:46, Arno Welzel ha scritto: >> J.O. Aho: >> >>> On 09/10/2020 12:21, alex wrote: >>>> 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 >>>>> >>>> >>>> ???? >>> >>> That is the documentation about final in PHP, something that been >>> supported since 2004. I do recommend you take a look at it and maybe >>> read the comments too, so you know how it works in php. >> >> I believe the question was not wether one can use "final" but how to get >> PHPStorm to automatically add this when asking to create the code using >> the "Implement methods" command in the "Code" menu of PHPStorm. >> >> > > I meant just that So what did jetbrains say? -- //Aho