![]() |
10-31-2022, 12:53 AM
(This post was last modified: 10-31-2022, 12:54 AM by objecttothis. Edit Reason: word choice )
I'm porting a CI3 app to CI4 and need to call one model method inside another model method. Can someone tell me why this produces no warning:
PHP Code: public function get_value(): int But if I do this: PHP Code: public function get_value(): int I get a warning from PhpStorm Potentially polymorphic call. Model does not have members in its hierarchy The function signature for get_quote_number_for_year() is public function Sale::get_quote_number_for_year($year = '', $start_from = 0) int |
Messages In This Thread |
potentially polymorphic call with model instance inside model function - by objecttothis - 10-31-2022, 12:53 AM
RE: potentially polymorphic call with model instance inside model function - by kenjis - 10-31-2022, 01:47 AM
RE: potentially polymorphic call with model instance inside model function - by objecttothis - 10-31-2022, 02:08 AM
RE: potentially polymorphic call with model instance inside model function - by kenjis - 10-31-2022, 02:43 AM
RE: potentially polymorphic call with model instance inside model function - by objecttothis - 10-31-2022, 06:32 AM
RE: potentially polymorphic call with model instance inside model function - by kenjis - 10-31-2022, 02:50 PM
|