Reading through this, I couldn't help but think the example was getting in the way of the suggestion, here. There are any number of tags, besides `@throws`, which could benefit from being removed from child implementations without outright replacing them, given the right use cases. Removal of optional parameters. Dropping attributions without providing one's own. Eliminating `@todo` entries which aren't applicable to the implementation. Any of these for an `extends` rather than an `implements`. And so on.
I mean, maybe I misunderstood the original suggestion itself, but it seemed like it covered myriad scenarios, rather than just the specific example. - Dan On Mon, Nov 26, 2018, 07:46 Nicholas Ruunu <[email protected]> wrote: > Yeah, that's a valid point. > In PHPStorm you can just overwrite `@throws` with nothing, or with > anything that's not an exception like `-` and it won't squawk. > What about just doing something like that? > > > On 26 November 2018 at 15:16:12, Alexandru Pătrănescu ([email protected]) > wrote: > > A RemoteStringLoader implementation that will fetch the string from a > remote location and then use StringLoader by composition. > > Alex > > On Mon, Nov 26, 2018 at 3:57 PM Woody Gilk <[email protected]> wrote: > >> On Mon, Nov 26, 2018 at 6:56 AM Marcos Passos <[email protected]> >> wrote: >> >>> Think about a loader interface, that can throw a LoadingException. A >>> StringLoader will never throw an exception, and any class tightly coupled >>> to it should not care about LoadingException. >>> >> >> In what situation would you have code tightly coupled to the >> implementation instead of the interface? >> >> -- >> Woody Gilk >> https://shadowhand.me >> >> -- >> You received this message because you are subscribed to the Google Groups >> "PHP Framework Interoperability Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/php-fig/CAGOJM6JABnTv0%3DO4OCGNUMs_2YPR4pxe%3DBXg1j5%2B2ayNWHgBZg%40mail.gmail.com >> <https://groups.google.com/d/msgid/php-fig/CAGOJM6JABnTv0%3DO4OCGNUMs_2YPR4pxe%3DBXg1j5%2B2ayNWHgBZg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "PHP Framework Interoperability Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/php-fig/CAAwdEzDXSt7DxNJYDzmA8bTv5nnxxL2jmdOHR2pdXUj2qSbiow%40mail.gmail.com > <https://groups.google.com/d/msgid/php-fig/CAAwdEzDXSt7DxNJYDzmA8bTv5nnxxL2jmdOHR2pdXUj2qSbiow%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "PHP Framework Interoperability Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/php-fig/etPan.5bfc0739.14709aeb.259%40ruu.nu > <https://groups.google.com/d/msgid/php-fig/etPan.5bfc0739.14709aeb.259%40ruu.nu?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAFjuE%2Bkc0UsR9H%2Bq%2B2BHpkq8NDWPjfSbFkJNpy5tTe5X3eWzeg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
